lmtp status=deferred

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
kerstenk
Posts: 22
Joined: 2004-01-20 10:47
Location: Hannover

lmtp status=deferred

Post by kerstenk » 2005-01-07 07:23

Morgen,

hab hier ein kleines problem mit meinem Postfix. :evil: Ich sitzte an dem ding schon seid 12 Stunden. Kann echt sein das ich da jetzt nur was übersehe oder auch nicht.

hier mal nen auszug aus der mail.log

Code: Select all

Jan  7 07:12:54 majad postfix/smtpd[2716]: 7D68F93814: client=majad.de.pureserver.info[217.160.214.38]
Jan  7 07:12:59 majad postfix/cleanup[2736]: 7D68F93814: message-id=<20050107061242.7D68F93814@mail.majad.de>
Jan  7 07:12:59 majad postfix/qmgr[2693]: 7D68F93814: from=<kersten.burkhardt@majad.de>, size=381, nrcpt=1 (queue active)
Jan  7 07:12:59 majad postfix/lmtp[2738]: 7D68F93814: to=<chilll@gmx.de>, relay=none, delay=17, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)
hab schon alles probiert telnet von inter nach extern und so weiter, in allen Variationen. Immer der gleiche Fehler status=deferred. Google und das Forum hier konnten mir auch nicht weiterhelfen. In

Code: Select all

ls -l /var/spool/postfix/private/
wir lmtp gelistet, netstat -a sagt mir auch das lmtp hört. Woran kann das nun liegen?

Für Hilfe wäre ich sehr dankbar.

mfg kersten

Roger Wilco
Administrator
Administrator
Posts: 6001
Joined: 2004-05-23 12:53

Re: lmtp status=deferred

Post by Roger Wilco » 2005-01-07 17:59

Poste die Ausgabe von `postconf -n` und allgemein etwas mehr Details zu deinem Setup.

kerstenk
Posts: 22
Joined: 2004-01-20 10:47
Location: Hannover

Re: lmtp status=deferred

Post by kerstenk » 2005-01-07 18:04

main.cf

Code: Select all

alias_maps = mysql:/etc/postfix/mysql-aliases.cf
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
disable_vrfy_command = yes
home_mailbox = Maildir/
local_recipient_maps = $alias_maps $virtual_mailbox_maps unix:passwd.byname
mydestination = $myhostname
mydomain = majad.de
myhostname = mail.majad.de
relocated_maps = mysql:/etc/postfix/mysql-relocated.cf
smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-client.cf
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_etrn_restrictions = reject
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,check_recipient_access mysql:/etc/postfix/mysql-recipient.cf,reject_unauth_destination,permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-sender.cf
transport_maps = mysql:/etc/postfix/mysql-transport.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf
virtual_gid_maps = mysql:/etc/postfix/mysql-virtual-gid.cf
virtual_mailbox_base = /var/server/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-maps.cf
virtual_transport = maildrop
virtual_uid_maps = mysql:/etc/postfix/mysql-virtual-uid.cf
master.cf

Code: Select all

smtp      inet  n       -       n       -       -       smtpd
#submission inet n      -       n       -       -       smtpd
#       -o smtpd_etrn_restrictions=reject
#628      inet  n       -       n       -       -       qmqpd
pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       n       300     1       oqmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       n       -       -       smtp
relay     unix  -       -       n       -       -       smtp
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#
maildrop  unix  -       n       n       -       -       pipe
  flags=R user=vmail argv=/usr/local/courier/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix  -       n       n       -       -       pipe
  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
cyrus     unix  -       n       n       -       -       pipe
  user=cyrus argv=/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
smtp-amavis unix -      -       n       -       2  lmtp
    -o lmtp_data_done_timeout=1200
    -o lmtp_send_xforward_command=yes

127.0.0.1:10025 inet n  -       n       -       -  smtpd
    -o content_filter=
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o smtpd_restriction_classes=
    -o smtpd_client_restrictions=
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o mynetworks=127.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit=1001
    -o smtpd_hard_error_limit=1000
Setup:

amavisd-new-2.2.1
clamav-0.80rc4
courier-imap-3.0.6
cyrus-sasl-2.1.20
maildrop-1.8.0
postfix-2.1.5

So, hoffe das hilft weiter ;)

mfg kersten

Roger Wilco
Administrator
Administrator
Posts: 6001
Joined: 2004-05-23 12:53

Re: lmtp status=deferred

Post by Roger Wilco » 2005-01-07 18:13

Sieht für mich so aus, als würde Amavis die Mails von Postfix nicht annehmen (Connection refused). Du solltest daher mal die Konfiguration von Amavis überprüfen und vielleicht mal von Hand versuchen, dort eine Mail abzusetzen.

Ausserdem würde ich mydestination noch ein wenig "ausbauen", aber das nur am Rande.

kerstenk
Posts: 22
Joined: 2004-01-20 10:47
Location: Hannover

Re: lmtp status=deferred

Post by kerstenk » 2005-01-07 19:04

So, auf der Suche nach des Problems habe ich festgestellt, das clamd gar nicht lief... mein Fehler. Brachte aber auch nix.

hab mal den debug von amavis gestartet und nun steht folgendes in der mail.log

Code: Select all

Jan  7 18:55:37 majad amavis[3531]: starting.  /usr/local/sbin/amavisd at majad.de amavisd-new-2.2.1 (20041222)
Jan  7 18:55:37 majad amavis[3531]: Perl version               5.006001
Jan  7 18:55:37 majad amavis[3534]: Module Amavis::Conf        2.034
Jan  7 18:55:37 majad amavis[3534]: Module Archive::Tar        1.23
Jan  7 18:55:37 majad amavis[3534]: Module Archive::Zip        1.14
Jan  7 18:55:37 majad amavis[3534]: Module BerkeleyDB          0.26
Jan  7 18:55:37 majad amavis[3534]: Module Compress::Zlib      1.33
Jan  7 18:55:37 majad amavis[3534]: Module Convert::TNEF       0.17
Jan  7 18:55:37 majad amavis[3534]: Module Convert::UUlib      1.04
Jan  7 18:55:37 majad amavis[3534]: Module DB_File             1.75
Jan  7 18:55:37 majad amavis[3534]: Module MIME::Entity        5.404
Jan  7 18:55:37 majad amavis[3534]: Module MIME::Parser        5.406
Jan  7 18:55:37 majad amavis[3534]: Module MIME::Tools         5.411
Jan  7 18:55:37 majad amavis[3534]: Module Mail::Header        1.65
Jan  7 18:55:37 majad amavis[3534]: Module Mail::Internet      1.65
Jan  7 18:55:37 majad amavis[3534]: Module Mail::SpamAssassin  3.000002
Jan  7 18:55:37 majad amavis[3534]: Module Net::Cmd            2.26
Jan  7 18:55:37 majad amavis[3534]: Module Net::SMTP           2.29
Jan  7 18:55:37 majad amavis[3534]: Module Net::Server         0.87
Jan  7 18:55:37 majad amavis[3534]: Module Time::HiRes         1.66
Jan  7 18:55:37 majad amavis[3534]: Module Unix::Syslog        0.99
Jan  7 18:55:37 majad amavis[3534]: Amavis::DB code        loaded
Jan  7 18:55:37 majad amavis[3534]: Amavis::Cache code     loaded
Jan  7 18:55:37 majad amavis[3534]: Lookup::SQL code       NOT loaded
Jan  7 18:55:37 majad amavis[3534]: Lookup::LDAP code      NOT loaded
Jan  7 18:55:37 majad amavis[3534]: AMCL-in protocol code  NOT loaded
Jan  7 18:55:37 majad amavis[3534]: SMTP-in protocol code  loaded
Jan  7 18:55:37 majad amavis[3534]: ANTI-VIRUS code        loaded
Jan  7 18:55:37 majad amavis[3534]: ANTI-SPAM  code        loaded
Jan  7 18:55:37 majad amavis[3534]: Unpackers  code        loaded
Jan  7 18:55:37 majad amavis[3534]: No $file,         not using it
Jan  7 18:55:37 majad amavis[3534]: No $arc,          not using it
Jan  7 18:55:37 majad amavis[3534]: Found $gzip       at /bin/gzip
Jan  7 18:55:37 majad amavis[3534]: Found $bzip2      at /usr/bin/bzip2
Jan  7 18:55:37 majad amavis[3534]: No $lzop,         not using it
Jan  7 18:55:37 majad amavis[3534]: No $lha,          not using it
Jan  7 18:55:37 majad amavis[3534]: No $unarj,        not using it
Jan  7 18:55:37 majad amavis[3534]: Found $uncompress at /bin/uncompress
Jan  7 18:55:37 majad amavis[3534]: No $unfreeze,     not using it
Jan  7 18:55:37 majad amavis[3534]: No $unrar,        not using it
Jan  7 18:55:37 majad amavis[3534]: No $zoo,          not using it
Jan  7 18:55:37 majad amavis[3534]: No $pax,          not using it
Jan  7 18:55:37 majad amavis[3534]: Found $cpio       at /bin/cpio
Jan  7 18:55:37 majad amavis[3534]: Found $ar         at /usr/bin/ar
Jan  7 18:55:37 majad amavis[3534]: No $rpm2cpio,     not using it
Jan  7 18:55:37 majad amavis[3534]: No $cabextract,   not using it
Jan  7 18:55:37 majad amavis[3534]: No $ripole,       not using it
Jan  7 18:55:37 majad amavis[3534]: No $dspam,        not using it
Jan  7 18:55:37 majad amavis[3534]: Using internal av scanner code for (primary) ClamAV-clamd
Jan  7 18:55:37 majad amavis[3534]: Found secondary av scanner ClamAV-clamscan at /usr/local/bin/clamscan
Jan  7 18:55:37 majad amavis[3534]: Creating db in /var/amavis/db/; BerkeleyDB 0.26, libdb 3.2
Jan  7 18:55:37 majad postfix/postfix-script: fatal: the Postfix mail system is already running
Jan  7 18:55:37 majad amavis[3534]: TROUBLE in pre_loop_hook: QUARANTINEDIR directory not writable: /var/virusmails at /usr/local/sbin/amavisd line 5704.
Jan  7 18:56:39 majad postfix/postfix-script: fatal: the Postfix mail system is already running
Jan  7 18:58:27 majad postfix/postfix-script: fatal: the Postfix mail system is already running
Jan  7 18:59:05 majad postfix/smtpd[3688]: connect from pop.gmx.de[213.165.64.20]
Jan  7 18:59:05 majad postfix/smtpd[3688]: 1057193818: client=pop.gmx.de[213.165.64.20]
Jan  7 18:59:05 majad postfix/cleanup[3699]: 1057193818: message-id=<41DECDD7.4090005@gmx.de>
Jan  7 18:59:05 majad postfix/qmgr[3433]: 1057193818: from=<chilll@gmx.de>, size=840, nrcpt=1 (queue active)
Jan  7 18:59:05 majad postfix/smtpd[3688]: disconnect from pop.gmx.de[213.165.64.20]
Jan  7 18:59:05 majad postfix/lmtp[3701]: 1057193818: to=<kersten.burkhardt@majad.de>, relay=none, delay=0, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)
Jan  7 18:59:56 majad authdaemond.mysql: restarting authdaemond children
Jan  7 18:59:56 majad authdaemond.mysql: modules="authmysql authpam", daemons=5
Jan  7 18:59:56 majad postfix/master[1593]: terminating on signal 15
hier mal ein auszug, nachdem ich alles manuell getsartet hab.

Code: Select all

Jan  7 19:09:46 majad amavis[373]: (00373-01) TROUBLE in check_mail: mime_decode-1 FAILED: Unix utility file(1) not available, but is needed at (eval 38) line 110.
Jan  7 19:09:46 majad amavis[373]: (00373-01) PRESERVING EVIDENCE in /var/amavis/tmp/amavis-20050107T190946-00373
das mit dem QUARANTINEDIR directory not writable hat sich schon erledigt, habe das geändert, aber ist nichts weiter passiert...

mfg kersten

kerstenk
Posts: 22
Joined: 2004-01-20 10:47
Location: Hannover

Re: lmtp status=deferred

Post by kerstenk » 2005-01-07 19:27

Hi,

ok soweit so gut. läuft jetzt alles. Jetzt das nächste Prob. Ich habe einen User in der DB der auf die mail kersten.burkhardt@majad.de hört. eigentlich sollte jede mail die an ihn geht auch ausgeliefert werden. Wird es aber nicht und zwar mit dieser Meldung:

Code: Select all

Jan  7 19:25:18 majad postfix/smtpd[653]: connect from pop.gmx.de[213.165.64.20]
Jan  7 19:25:18 majad postfix/smtpd[653]: 50736937C6: client=pop.gmx.de[213.165.64.20]
Jan  7 19:25:18 majad postfix/cleanup[602]: 50736937C6: message-id=<41DED3FC.2080704@gmx.de>
Jan  7 19:25:18 majad postfix/qmgr[585]: 50736937C6: from=<chilll@gmx.de>, size=840, nrcpt=1 (queue active)
Jan  7 19:25:18 majad postfix/smtpd[653]: disconnect from pop.gmx.de[213.165.64.20]
Jan  7 19:25:18 majad postfix/smtpd[594]: connect from localhost[127.0.0.1]
Jan  7 19:25:18 majad postfix/smtpd[594]: 9FF3C937C8: client=localhost[127.0.0.1]
Jan  7 19:25:18 majad postfix/cleanup[609]: 9FF3C937C8: message-id=<41DED3FC.2080704@gmx.de>
Jan  7 19:25:18 majad postfix/qmgr[585]: 9FF3C937C8: from=<chilll@gmx.de>, size=1269, nrcpt=1 (queue active)
Jan  7 19:25:18 majad postfix/smtpd[594]: disconnect from localhost[127.0.0.1]
Jan  7 19:25:18 majad amavis[588]: (00588-01-11) Passed CLEAN, [213.165.64.20] [212.202.25.105] <chilll@gmx.de> -> <kersten.burkhardt@majad.de>, Message-ID: <41DED3FC.2080704@gmx.de>, Hits: 0.05, 392 ms
Jan  7 19:25:18 majad postfix/pipe[629]: 9FF3C937C8: to=<kersten.burkhardt@majad.de>, relay=maildrop, delay=0, status=bounced (user unknown. Command output: Invalid user specified. )
Jan  7 19:25:18 majad postfix/cleanup[602]: C3A98937C9: message-id=<20050107182518.C3A98937C9@mail.majad.de>
Jan  7 19:25:18 majad postfix/qmgr[585]: 9FF3C937C8: removed
Jan  7 19:25:18 majad postfix/qmgr[585]: C3A98937C9: from=<>, size=2949, nrcpt=1 (queue active)
Jan  7 19:25:18 majad postfix/lmtp[587]: 50736937C6: to=<kersten.burkhardt@majad.de>, relay=127.0.0.1[127.0.0.1], delay=0, status=sent (250 2.6.0 Ok, id=00588-01-11, from MTA: 250 Ok: queued as 9FF3C937C8)
Jan  7 19:25:18 majad postfix/qmgr[585]: 50736937C6: removed
Jan  7 19:25:18 majad postfix/smtp[635]: C3A98937C9: to=<chilll@gmx.de>, relay=mx0.gmx.de[213.165.64.100], delay=0, status=sent (250 2.6.0 {mx041} Message accepted)
Jan  7 19:25:18 majad postfix/qmgr[585]: C3A98937C9: removed
mfg kersten