Postfix kann mails senden und empfangen - aber nicht immer!!

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

Postfix kann mails senden und empfangen - aber nicht immer!!

Post by kerstenk » 2005-03-11 20:09

Hi,

ich habe ein Problem mit meinem Mailserver. Den habe ich grade frisch aufgesetzt. Mit der gleichen Config, wie vorher auch. Jetzt gibt es nur ein Problem. Ich kann keine mails an domain1.de senden, da spuckt postfix folgenden fehler aus

Code: Select all

Mar 11 19:49:32 p15137856 postfix/pipe[14438]: 4DE682CC10C: to=<kersten.burkhardt@domain1.de>, relay=maildrop, delay=0, status=bounced (user unknown. Command output: Invalid user specified. )
hier meine postconf -n

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 = domain1.de
myhostname = mail.domain1.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 = /home/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
und hier noch meine master.cf

Code: Select all

# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
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=/var/server/mailserver/courier/current/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
So nochmal ich sende eine mail an user@domain1.de und dann kommt folgendes:

Code: Select all

Mar 11 19:49:31 p15137856 postfix/smtpd[14405]: connect from port-212-202-176-40.dynamic.qsc.de[212.202.176.40]
Mar 11 19:49:31 p15137856 postfix/smtpd[14405]: 965362CC10C: client=port-212-202-176-40.dynamic.qsc.de[212.202.176.40], sasl_method=PLAIN, sasl_username=kersten.burkhardt@domain1.de
Mar 11 19:49:31 p15137856 postfix/cleanup[14420]: 965362CC10C: message-id=<4231E836.2020306@domain1.de>
Mar 11 19:49:31 p15137856 postfix/qmgr[14400]: 965362CC10C: from=<kersten.burkhardt@domain1.de>, size=620, nrcpt=1 (queue active)
Mar 11 19:49:31 p15137856 postfix/smtpd[14405]: disconnect from port-212-202-176-40.dynamic.qsc.de[212.202.176.40]
Mar 11 19:49:32 p15137856 postfix/smtpd[14425]: connect from localhost[127.0.0.1]
Mar 11 19:49:32 p15137856 postfix/smtpd[14425]: 138A52CC11B: client=localhost[127.0.0.1]
Mar 11 19:49:32 p15137856 postfix/cleanup[14420]: 138A52CC11B: message-id=<4231E836.2020306@domain1.de>
Mar 11 19:49:32 p15137856 postfix/qmgr[14400]: 138A52CC11B: from=<kersten.burkhardt@domain1.de>, size=1066, nrcpt=1 (queue active)
Mar 11 19:49:32 p15137856 postfix/smtpd[14425]: disconnect from localhost[127.0.0.1]
Mar 11 19:49:32 p15137856 amavis[13978]: (13978-04-2) Passed CLEAN, [212.202.176.40] [212.202.176.40] <kersten.burkhardt@domain1.de> -> <kersten.burkhardt@domain1.de>, Message-ID: <4231E836.2020306@domain1.de>, Hits: 0.05, 450 ms
Mar 11 19:49:32 p15137856 postfix/lmtp[14422]: 965362CC10C: to=<kersten.burkhardt@domain1.de>, relay=127.0.0.1[127.0.0.1], delay=1, status=sent (250 2.6.0 Ok, id=13978-04-2, from MTA: 250 Ok: queued as 138A52CC11B)
Mar 11 19:49:32 p15137856 postfix/qmgr[14400]: 965362CC10C: removed
Mar 11 19:49:32 p15137856 postfix/pipe[14438]: 138A52CC11B: to=<kersten.burkhardt@domain1.de>, relay=maildrop, delay=0, status=bounced (user unknown. Command output: Invalid user specified. )
Mar 11 19:49:32 p15137856 postfix/cleanup[14420]: 4DE682CC10C: message-id=<20050311184932.4DE682CC10C@mail.majad.de>
Mar 11 19:49:32 p15137856 postfix/qmgr[14400]: 4DE682CC10C: from=<>, size=2780, nrcpt=1 (queue active)
Mar 11 19:49:32 p15137856 postfix/qmgr[14400]: 138A52CC11B: removed
Mar 11 19:49:32 p15137856 postfix/pipe[14438]: 4DE682CC10C: to=<kersten.burkhardt@domain1.de>, relay=maildrop, delay=0, status=bounced (user unknown. Command output: Invalid user specified. )
Mar 11 19:49:32 p15137856 postfix/qmgr[14400]: 4DE682CC10C: removed
Wenn ich aber an user1@domain2.de schreibe passiert das:

Code: Select all


ich kann mir das absolut nicht erklären, da es bis eben noch ging und nun einfach nicht mehr... Das einzige was ich gemacht hab, war den Eicar-Test Virus an diese Adresse zu senden, um auch zu sehen das amavis geht. hat auch soweit geklappt, die mail liegt im quarantainedir. nur geht jetzt gar nix mehr. weder bei der einen domain noch bei der anderen.

danke für eure hilfe
mfg kersten

squize
Userprojekt
Userprojekt
Posts: 741
Joined: 2003-05-19 16:46
Location: Karlsruhe

Re: Postfix kann mails senden und empfangen - aber nicht immer!!

Post by squize » 2005-03-12 00:26

Was steht in $alias_maps $virtual_mailbox_maps unix:passwd.byname und wie ist maildrop konfiguriert?

Gruss

Marc

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

Re: Postfix kann mails senden und empfangen - aber nicht immer!!

Post by kerstenk » 2005-03-12 09:49

Code: Select all

alias_maps = mysql:/etc/postfix/mysql-aliases.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-maps.cf
Courier-Maildrop

Code: Select all

./configure 
--prefix=/var/server/mailserver/courier/current 
--enable-maildirquota 
--enable-maildropmysql 
--with-mysqlconfig=/var/server/mailserver/courier/current/etc/maildropmysql.config 
--enable-maildrop-uid=1001 
--enable-maildrop-gid=1001 
--with-trashquota
hm, hoffe das hilft weiter, aber die einträge in den mysql dateien sind alle korrekt.

mfg