Jump to content
Froxlor Forum
  • 0

[solved] unkown user xxx bei e-mail empfang


vladimir

Question

Hallo froxlor-Forum,

 

vielleicht kann mir jemand helfen, ich stehe irgendwie auf dem Schlauch.

 

froxlor, nginx, php-fpm, postfix und dovecot sind soweit eingerichtet. Domain habe ich angelegt und e-mails eingerichtet. dazu ist roundcube als webmailer eingerichtet. Anmelden per roundcube funktioniert und der e-mail Versand klappt auch problemlos, wenn ich aber eine e-mail zur?cksende, dann kommt prompt eine e-mail zur?ck, bzw. auch eine entsprechende meldung in den logs von postfix  mit der meldung: bounced user <xx> is unknown.

im dovecot scheint der user zu existieren, nicht aber bei postfix.

 

hat da jemand einen heissen tipp f?r mich? danke schon mal daf?r.

 

vladimir

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

die Meldung mit amavis ist neu, hab ich noch nicht n?her angeschaut, aber anbei einfach mal Absatz der erscheint, wenn ich mir von gmx aus eine e-mail schicke. Domain und e-mail sind ge?ndert.

Nov 22 14:50:16 vx1855 postfix/smtpd[15653]: connect from mout.gmx.net[212.227.15.18]
Nov 22 14:50:16 vx1855 postfix/trivial-rewrite[15658]: warning: do not list domain meinedomain.de in BOTH mydestination and virtual_mailbox_domains
Nov 22 14:50:17 vx1855 postfix/smtpd[15653]: 2AEE51EA0662: client=mout.gmx.net[212.227.15.18]
Nov 22 14:50:17 vx1855 postfix/cleanup[15659]: 2AEE51EA0662: message-id=<trinity-a817605c-6ff1-4b94-8eb5-1f436bf32c8a-1416664216519@3capp-gmx-bs32>
Nov 22 14:50:17 vx1855 postfix/qmgr[12527]: 2AEE51EA0662: from=<user@gmx.net>, size=1116, nrcpt=1 (queue active)
Nov 22 14:50:17 vx1855 postfix/smtpd[15653]: disconnect from mout.gmx.net[212.227.15.18]
Nov 22 14:50:17 vx1855 amavis[11694]: (11694-03) (!)run_av (ClamAV-clamd) FAILED - unexpected , output="/var/lib/amavis/tmp/amavis-20141122T113143-11694-cdu46vpP/parts: lstat() failed: Permission denied. ERROR\n"
Nov 22 14:50:17 vx1855 amavis[11694]: (11694-03) (!)ClamAV-clamd av-scanner FAILED: CODE(0xb3a690) unexpected , output="/var/lib/amavis/tmp/amavis-20141122T113143-11694-cdu46vpP/parts: lstat() failed: Permission denied. ERROR\n" at (eval 111) line 899.
Nov 22 14:50:17 vx1855 amavis[11694]: (11694-03) (!)WARN: all primary virus scanners failed, considering backups
Nov 22 14:50:25 vx1855 postfix/smtpd[15665]: connect from localhost[127.0.0.1]
Nov 22 14:50:25 vx1855 postfix/trivial-rewrite[15658]: warning: do not list domain meinedomain.de in BOTH mydestination and virtual_mailbox_domains
Nov 22 14:50:25 vx1855 postfix/smtpd[15665]: AB0781EA07AF: client=localhost[127.0.0.1]
Nov 22 14:50:25 vx1855 postfix/cleanup[15659]: AB0781EA07AF: message-id=<trinity-a817605c-6ff1-4b94-8eb5-1f436bf32c8a-1416664216519@3capp-gmx-bs32>
Nov 22 14:50:25 vx1855 postfix/qmgr[12527]: AB0781EA07AF: from=<user@gmx.net>, size=1569, nrcpt=1 (queue active)
Nov 22 14:50:25 vx1855 postfix/smtpd[15665]: disconnect from localhost[127.0.0.1]
Nov 22 14:50:25 vx1855 postfix/trivial-rewrite[15658]: warning: do not list domain meinedomain.de in BOTH mydestination and virtual_mailbox_domains
Nov 22 14:50:25 vx1855 amavis[11694]: (11694-03) Passed CLEAN {RelayedOpenRelay}, [212.227.15.18]:53129 [80.187.113.67] <user@gmx.net> -> <mailuser@meinedomain.de>, Queue-ID: 2AEE51EA0662, Message-ID: <trinity-a817605c-6ff1-4b94-8eb5-1f436bf32c8a-1416664216519@3capp-gmx-bs32>, mail_id: NLuAbJVcJkiu, Hits: 1.097, size: 1116, queued_as: AB0781EA07AF, 8463 ms
Nov 22 14:50:25 vx1855 postfix/smtp[15660]: 2AEE51EA0662: to=<mailuser@meinedomain.de>, relay=127.0.0.1[127.0.0.1]:10024, delay=8.8, delays=0.28/0/0.01/8.5, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as AB0781EA07AF)
Nov 22 14:50:25 vx1855 postfix/qmgr[12527]: 2AEE51EA0662: removed
Nov 22 14:50:25 vx1855 postfix/local[15666]: AB0781EA07AF: to=<mailuser@meinedomain.de>, relay=local, delay=0.05, delays=0.02/0.01/0/0.02, dsn=5.1.1, status=bounced (unknown user: "mailuser")
Nov 22 14:50:25 vx1855 postfix/cleanup[15659]: B6AE81EA07B7: message-id=<20141122135025.B6AE81EA07B7@mail.meinedomain.de>
Nov 22 14:50:25 vx1855 postfix/bounce[15667]: AB0781EA07AF: sender non-delivery notification: B6AE81EA07B7
Nov 22 14:50:25 vx1855 postfix/qmgr[12527]: B6AE81EA07B7: from=<>, size=3432, nrcpt=1 (queue active)
Nov 22 14:50:25 vx1855 postfix/qmgr[12527]: AB0781EA07AF: removed
Nov 22 14:50:26 vx1855 postfix/smtp[15668]: B6AE81EA07B7: to=<user@gmx.net>, relay=mx01.emig.gmx.net[213.165.67.97]:25, delay=0.33, delays=0.01/0/0.11/0.2, dsn=2.0.0, status=sent (250 Requested mail action okay, completed: id=0MN5fQ-1XpyA542DA-006hIW)
Nov 22 14:50:26 vx1855 postfix/qmgr[12527]: B6AE81EA07B7: removed

Link to comment
Share on other sites

hier dazu die main.cf und die master.cf, ich konnte da gerade nichts verkehrtes finden.

 

main.cf


        reject_unknown_sender_domain
smtpd_client_restrictions = permit_mynetworks,
        permit_sasl_authenticated,
        reject_unknown_client_hostname
        reject_rbl_client zen.spamhaus.org,
        reject_rbl_client bl.spamcop.net
message_size_limit = 52428800
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
smtpd_sasl_type = dovecot
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
smtpd_sasl_path = private/auth
virtual_mailbox_base = /var/customers/mail/
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailbox_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_mailbox_domains.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_alias_maps.cf
smtpd_sender_login_maps = mysql:/etc/postfix/mysql-virtual_sender_permissions.cf
virtual_uid_maps = static:2000
virtual_gid_maps = static:2000
local_transport = local
alias_maps = $alias_database
mailbox_size_limit = 0
virtual_mailbox_limit = 0
content_filter = smtp-amavis:[127.0.0.1]:10024

master.cf


        flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}
smtp-amavis     unix    -       -       -       -       2       smtp
        -o smtp_data_done_timeout=1200
        -o smtp_send_xforward_command=yes
        -o disable_dns_lookups=yes
        -o max_use=20
127.0.0.1:10025 inet    n       -       -       -       -       smtpd
        -o content_filter=
        -o local_recipient_maps=
        -o relay_recipient_maps=
        -o smtpd_restriction_classes=
        -o smtpd_delay_reject=no
        -o smtpd_client_restrictions=permit_mynetworks,reject
        -o smtpd_helo_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o smtpd_data_restrictions=reject_unauth_pipelining
        -o smtpd_end_of_data_restrictions=
        -o mynetworks=127.0.0.0/8
        -o smtpd_error_sleep_time=0
        -o smtpd_soft_error_limit=1001
        -o smtpd_hard_error_limit=1000
        -o smtpd_client_connection_count_limit=0
        -o smtpd_client_connection_rate_limit=0
        -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks
Link to comment
Share on other sites

Ist das die komplette master.cf ?

 

Da fehlt doch etwas vor "flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}", bei mir schaut das so aus:

 

# Dovecot LDA
dovecot   unix  -       n       n       -       -       pipe
        flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}
 
Du setzt Postfix & Dovecot ein oder ? Welches OS hast Du installiert ?
So wie ich das sehe, versucht Postfix es an einen Lokalen User (Systemuser) zuzustellen: -> relay=local, es muss aber an Dovecot ?bergeben werden -> relay=dovecot 
Link to comment
Share on other sites

Hoppala, ein kleiner copy+paste Fehler. Von unterwegs vom kleinen netbook ?der putty kann nix gescheites bei rauskommen ;)

Hier nochmal in richtig.

 

master.cf

smtp      inet  n       -       -       -       -       smtpd
pickup    fifo  n       -       -       60      1       pickup
	  -o content_filter=
          -o receive_override_options=no_header_body_checks
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       -       -       -       smtp
relay     unix  -       -       -       -       -       smtp
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
retry     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache    unix  -       -       -       -       1       scache
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
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=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix	-	n	n	-	2	pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman   unix  -       n       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}
dovecot	  unix	-	n	n	-	-	pipe
	flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}
smtp-amavis     unix    -       -       -       -       2       smtp
        -o smtp_data_done_timeout=1200
        -o smtp_send_xforward_command=yes
        -o disable_dns_lookups=yes
        -o max_use=20
127.0.0.1:10025 inet    n       -       -       -       -       smtpd
        -o content_filter=
        -o local_recipient_maps=
        -o relay_recipient_maps=
        -o smtpd_restriction_classes=
        -o smtpd_delay_reject=no
        -o smtpd_client_restrictions=permit_mynetworks,reject
        -o smtpd_helo_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o smtpd_data_restrictions=reject_unauth_pipelining
        -o smtpd_end_of_data_restrictions=
        -o mynetworks=127.0.0.0/8
        -o smtpd_error_sleep_time=0
        -o smtpd_soft_error_limit=1001
        -o smtpd_hard_error_limit=1000
        -o smtpd_client_connection_count_limit=0
        -o smtpd_client_connection_rate_limit=0
        -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks

main.cf

command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
myhostname = mail.$mydomain
mydomain = meinedomain.de
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8
mailbox_command = /usr/lib/dovecot/deliver
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
debugger_command =
	 PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
	 ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail 
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix
readme_directory = /usr/share/doc/postfix
inet_protocols = ipv4
append_dot_mydomain = no
biff = no
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks,
	permit_sasl_authenticated,
	reject_unauth_destination,
	reject_unauth_pipelining,
	reject_non_fqdn_recipient
	check_recipient_mx_access cidr:/etc/postfix/mx_access
smtpd_sender_restrictions = permit_mynetworks,
	reject_sender_login_mismatch,
	permit_sasl_authenticated, 
	reject_unknown_helo_hostname, 
	reject_unknown_recipient_domain, 
	reject_unknown_sender_domain
smtpd_client_restrictions = permit_mynetworks,
	permit_sasl_authenticated,
	reject_unknown_client_hostname
	reject_rbl_client zen.spamhaus.org,
        reject_rbl_client bl.spamcop.net
message_size_limit = 52428800
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
smtpd_sasl_type = dovecot
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
smtpd_sasl_path = private/auth
virtual_mailbox_base = /var/customers/mail/
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailbox_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_mailbox_domains.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_alias_maps.cf
smtpd_sender_login_maps = mysql:/etc/postfix/mysql-virtual_sender_permissions.cf
virtual_uid_maps = static:2000
virtual_gid_maps = static:2000
local_transport = local
alias_maps = $alias_database
mailbox_size_limit = 0
virtual_mailbox_limit = 0
content_filter = smtp-amavis:[127.0.0.1]:10024
Link to comment
Share on other sites

Infos war ich ja noch schuldig, System ist Debian 7 mit postfix und dovecot.

Hab die config jetzt etwas erweitert, brachte aber nicht wirklich etwas, relay bleibt auf local, bzw. mail wird nach wie vor gebounced.

 

main.cf erweiterung:

virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...