• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

mails bleiben in mailq hängen

Status
Für weitere Antworten geschlossen.
hallo, habe nochmal eine frage zu postfix und cyrus, irgendwie werden die mails die ich mit fetchmail abhole nicht an postfix übergeben, habe auch die suchfunktion benutzt aber nichts deutet auf mein problem hin, da ich alle einstellungen so wie in den posts habe....

in der mailq der useres steht immer connection refused, de weiteren funktioniert der mailversand und das entgegennehmen der mails nicht...

thx im vorraus
:oops:
 

oc2pus

Ultimate Guru
timo-fischer schrieb:
hallo, habe nochmal eine frage zu postfix und cyrus, irgendwie werden die mails die ich mit fetchmail abhole nicht an postfix übergeben, habe auch die suchfunktion benutzt aber nichts deutet auf mein problem hin, da ich alle einstellungen so wie in den posts habe....

in der mailq der useres steht immer connection refused, de weiteren funktioniert der mailversand und das entgegennehmen der mails nicht...

thx im vorraus
:oops:

also geht gar nix ausser fetchmail ;)

Oh da müssen wir in die Glaskugel schauen, welche Konfiguration hat timo-fischer doch gleich ? Nach welcher Anleitung hasst du den Server zusammengebastelt ? Welche Programme verwendest du ? Ist das ein ein lokaler email-Server ? hast du eine eigene IP ?

Wenn du mails abholst via fetchmail, beobachte die /var/log/mail
diese Ausgabe dann hier posten.

diese Ausgaben solltest du dann schon mal bereit halten (jetzt noch nicht posten, vorerst nur den logauszug):
postconf -n
cat /etc/postfix/master.cf | grep -v "^#"
cat /etc/cyrus.conf | grep -v "^#"
cat /etc/imapd.conf | grep -v "^#"

zum vorbereiten:
läuft postfix?
läuft cyrus ?
läuft saslauthd ?
 
OP
T

timo-fischer

Newbie
also die sachen laufen alle

so postconf -n

alias_maps = hash:/etc/aliases
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter =
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_transport = smtp
defer_transports =
disable_dns_lookups = no
fallback_transport = cyrus
inet_interfaces = 127.0.0.1
luser_relay = $
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command =
mailbox_size_limit = 0
mailbox_transport = cyrus
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
masquerade_exceptions = root
message_size_limit = 10240000
mydestination = $myhostname, localhost.$mydomain
mydomain = meisterlampe.kicks-ass.net
myhostname = server.meisterlampe.kicks-ass.net
mynetworks = 192.168.1.0/24, 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
program_directory = /usr/lib/postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relayhost =
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_sasl_auth_enable = no
smtp_use_tls = no
smtpd_banner = $myhostname ESMTP
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = no
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_use_tls = no
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 450

master.cf

smtp inet n - n - - smtpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
cyrus unix - n n - - pipe
user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
vscan unix - n n - 10 pipe
user=vscan argv=/usr/sbin/amavis ${sender} ${recipient}
procmail unix - n n - - pipe
flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient}

cyrus.conf

START {
# do not delete this entry!
recover cmd="ctl_cyrusdb -r"

# this is only necessary if using idled for IMAP IDLE
}

SERVICES {
# add or remove based on preferences
imap cmd="imapd" listen="imap" prefork=0
pop3 cmd="pop3d" listen="pop3" prefork=0
sieve cmd="timsieved" listen="sieve" prefork=0

# at least one LMTP is required for delivery
lmtpunix cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=0

# this is only necessary if using notifications
}

EVENTS {
# this is required
checkpoint cmd="ctl_cyrusdb -c" period=30

# this is only necessary if using duplicate delivery suppression
delprune cmd="ctl_deliver -E 3" period=1440

# this is only necessary if caching TLS sessions
tlsprune cmd="tls_prune" period=1440

# Uncomment the next entry, if you want to automatically remove
# old messages of EVERY user.
# This example calls ipurge every 60 minutes and ipurge will delete
# ALL messages older then 30 days.
# enter 'man 8 ipurge' for more details

# cleanup cmd="ipurge -d 30 -f" period=60
}

imapd.conf

configdirectory: /var/lib/imap
partition-default: /var/spool/imap
sievedir: /var/lib/sieve
admins: cyrus root
srvtab: /var/lib/imap/srvtab
allowanonymouslogin: no
autocreatequota: 50000
reject8bit: no
quotawarn: 90
timeout: 480
poptimeout: 10
dracinterval: 0
drachost: localhost
sasl_pwcheck_method: saslauthd
lmtp_overquota_perm_failure: no

noch ein paar daten,
- benutze dyndns
- das mailen nach aussen funktioniert jetzt auch
- system suse 9.0
- dienste müssten alle laufen
- die übergabe von fetchmail an cyrus funktioniert nicht, da sie in der mailq hängen bleiben

thx schonmal
 

oc2pus

Ultimate Guru
ich wollte eigentlich das ....
Wenn du mails abholst via fetchmail, beobachte die /var/log/mail
diese Ausgabe dann hier posten.

diese Ausgaben solltest du dann schon mal bereit halten (jetzt noch nicht posten, vorerst nur den logauszug):

nur ruhig Blut, nichts überstürzen ...aber die Config Angaben sind auch ok ;)
 
OP
T

timo-fischer

Newbie
sorry :oops:

Aug 12 16:25:02 server imapd[3465]: open: user timo opened INBOX.Sent
Aug 12 16:25:02 server last message repeated 2 times
Aug 12 16:25:02 server imapd[3465]: SQUAT failed to open index file
Aug 12 16:25:02 server imapd[3465]: SQUAT failed
Aug 12 16:26:02 server master[3392]: process 3465 exited, status 0
Aug 12 16:26:53 server su: (to timo) root on none
Aug 12 16:26:53 server su: pam_unix2: session started for user timo, service su
 
OP
T

timo-fischer

Newbie
wer lesen kann ist klar im vorteil :-(

Aug 12 16:34:25 server postfix/cleanup[3735]: 1FBBCB84C: message-id=<B07BD5789B0
1D5118B9E00D0B761F0A8016282@EXCHANGE_SRV>
Aug 12 16:34:25 server postfix/local[3731]: 22391B83E: to=<timo@localhost.meiste
rlampe.kicks-ass.net>, orig_to=<timo@localhost>, relay=local, delay=2, status=se
nt (forwarded as D3C0EB845)
Aug 12 16:34:25 server postfix/qmgr[2775]: D3C0EB845: to=<timo@meisterlampe.kick
s-ass.net>, orig_to=<timo@localhost>, relay=none, delay=1, status=deferred (conn
ect to meisterlampe.kicks-ass.net[217.82.4.131]: Connection refused)
Aug 12 16:34:25 server postfix/qmgr[2775]: D4282B849: from=<timo@suse.de>, size=
1775, nrcpt=1 (queue active)
Aug 12 16:34:25 server postfix/qmgr[2775]: 1FBBCB84C: from=<boeer@campusnet.de>,
size=5180, nrcpt=1 (queue active)
Aug 12 16:34:25 server postfix/cleanup[3737]: 5F296B84D: message-id=<19672.192.1
68.1.5.1092320600.squirrel@192.168.1.2>
Aug 12 16:34:25 server postfix/qmgr[2775]: 5F296B84D: from=<timo@suse.de>, size=
1945, nrcpt=1 (queue active)
Aug 12 16:34:25 server postfix/cleanup[3736]: 6128FB84E: message-id=<B07BD5789B0
1D5118B9E00D0B761F0A8016282@EXCHANGE_SRV>
Aug 12 16:34:25 server postfix/local[3730]: D4282B849: to=<timo@localhost.meiste
rlampe.kicks-ass.net>, orig_to=<timo@localhost>, relay=local, delay=1, status=se
nt (forwarded as 5F296B84D)
Aug 12 16:34:25 server postfix/qmgr[2775]: 5F296B84D: to=<timo@meisterlampe.kick
s-ass.net>, orig_to=<timo@localhost>, relay=none, delay=0, status=deferred (conn
ect to meisterlampe.kicks-ass.net[217.82.4.131]: Connection refused)
Aug 12 16:34:25 server postfix/local[3726]: 1FBBCB84C: to=<timo@localhost.meiste
rlampe.kicks-ass.net>, orig_to=<timo@localhost>, relay=local, delay=0, status=se
nt (forwarded as 6128FB84E)
Aug 12 16:34:25 server postfix/qmgr[2775]: 6128FB84E: from=<boeer@campusnet.de>,
size=5350, nrcpt=1 (queue active)
Aug 12 16:34:25 server postfix/qmgr[2775]: 6128FB84E: to=<timo@meisterlampe.kick
s-ass.net>, orig_to=<timo@localhost>, relay=none, delay=0, status=deferred (conn
ect to meisterlampe.kicks-ass.net[217.82.4.131]: Connection refused)
Aug 12 16:34:26 server postfix/smtpd[3722]: disconnect from localhost[127.0.0.1]
 

oc2pus

Ultimate Guru
ok here we go

/etc/postfix/main.cf:
mailbox_transport = lmtp:unix:public/lmtp

/etc/cyrus.conf
lmtpunix cmd="lmtpd" listen="/var/spool/postfix/public/lmtp" prefork=1

damit sollte der postfix den cyrus ansprechen können.
nicht vergessen:
rccyrus restart
rcpostfix restart
 
OP
T

timo-fischer

Newbie
funktionier noch nicht kommt noch diese Fehlermeldung, habe die beiden einstellungen übernommen bzw bei der zweite die einstellung geändert...

Aug 12 17:15:52 server postfix/qmgr[4187]: 8AB05B66C: from=<alexander.wolf@neumannmueller.com>, size=6235047, nrcpt=1 (queue active)
Aug 12 17:15:53 server postfix/local[4299]: 20222B844: to=<timo@localhost.meisterlampe.kicks-ass.net>, orig_to=<timo@localhost>, relay=local, delay=2, status=sent (forwarded as 8AB05B66C)
Aug 12 17:15:53 server postfix/qmgr[4187]: 8AB05B66C: to=<timo@meisterlampe.kicks-ass.net>, orig_to=<timo@localhost>, relay=none, delay=0, status=deferred (connect to meisterlampe.kicks-ass.net[217.82.4.131]: Connection refused)
Aug 12 17:15:53 server postfix/cleanup[4306]: 1B473B84B: message-id=<B07BD5789B01D5118B9E00D0B761F0A8016282@EXCHANGE_SRV>
Aug 12 17:15:53 server postfix/local[4292]: 8B2D2B84A: to=<timo@localhost.meisterlampe.kicks-ass.net>, orig_to=<timo@localhost>, relay=local, delay=1, status=sent (forwarded as 1B473B84B)
Aug 12 17:15:53 server postfix/qmgr[4187]: 1B473B84B: from=<boeer@campusnet.de>, size=5362, nrcpt=1 (queue active)
Aug 12 17:15:53 server postfix/qmgr[4187]: 1B473B84B: to=<timo@meisterlampe.kicks-ass.net>, orig_to=<timo@localhost>, relay=none, delay=0, status=deferred (connect to meisterlampe.kicks-ass.net[217.82.4.131]: Connection refused)
Aug 12 17:15:54 server postfix/smtpd[4288]: disconnect from localhost[127.0.0.1]

:cry:
 

oc2pus

Ultimate Guru
sorry ;)

mynetworks = 192.168.1.0/24, 127.0.0.0/8

und sieh mal hier:

Aug 12 17:15:53 server postfix/qmgr[4187]: 1B473B84B: to=<timo@meisterlampe.kicks-ass.net>, orig_to=<timo@localhost>, relay=none, delay=0, status=deferred (connect to meisterlampe.kicks-ass.net[217.82.4.131]: Connection refused)
 

oc2pus

Ultimate Guru
mydomain = meisterlampe.kicks-ass.net

dein postfix soll doch für diese domain arbeiten? dann sollte er auch die Post dafür annehmen...
 
OP
T

timo-fischer

Newbie
Aug 12 17:54:20 server postfix/qmgr[5997]: 5538DB841: to=<timo@meisterlampe.kicks-ass.net>, orig_to=<timo@localhost>, relay=none, delay=0, status=deferred (connect to meisterlampe.kicks-ass.net[80.132.184.47]: Connection refused)
Aug 12 17:54:20 server postfix/qmgr[5997]: 55ABFB845: from=<boeer@campusnet.de>, size=5192, nrcpt=1 (queue active)
Aug 12 17:54:20 server postfix/cleanup[6032]: D5D96B843: message-id=<B07BD5789B01D5118B9E00D0B761F0A8016282@EXCHANGE_SRV>
Aug 12 17:54:20 server postfix/local[6019]: 55ABFB845: to=<timo@localhost.meisterlampe.kicks-ass.net>, orig_to=<timo@localhost>, relay=local, delay=0, status=sent (forwarded as D5D96B843)
Aug 12 17:54:20 server postfix/qmgr[5997]: D5D96B843: from=<boeer@campusnet.de>, size=5362, nrcpt=1 (queue active)
Aug 12 17:54:20 server postfix/qmgr[5997]: D5D96B843: to=<timo@meisterlampe.kicks-ass.net>, orig_to=<timo@localhost>, relay=none, delay=0, status=deferred (connect to meisterlampe.kicks-ass.net[80.132.184.47]: Connection refused)
Aug 12 17:54:22 server postfix/smtpd[6015]: disconnect from localhost[127.0.0.1]

...das selbe wieder...
 

dermichel

Advanced Hacker
ich steige hier mal ein um 'ne benachrichtigung zu bekommen wenns weitergeht ;)

oc2pus schreibt dir gleich die loesung ;)
 

oc2pus

Ultimate Guru
mydestination = $myhostname, localhost.$mydomain

da muss dran gedreht werden (heute nicht fit). das erweitern um deine domain
 
OP
T

timo-fischer

Newbie
funzt auch nit

keine ahnung mailserver ist nicht meine stärke aber ich will das teil mal laufen haben :-(

hoffe mal ich nerve dich nicht zu sehr :oops:
 

dermichel

Advanced Hacker
mydomain = meisterlampe.kicks-ass.net
myhostname = server.meisterlampe.kicks-ass.net


mydestination = $myhostname, localhost.$mydomain, meisterlampe.kicks-ass.net


rcpostfix restart


logauszug posten
 
Status
Für weitere Antworten geschlossen.
Oben