[Postfixbuch-users] user at localhost.domain.tld

Sandy Drobic postfixbuch-users at drobic.de
Di Mär 17 23:08:34 CET 2009


Marcel Hartmann (privat) wrote:
> Gregor Hermens schrieb:
>> interessanter wäre hier das Log, wie diese Mail beim ersten Postfix 
>> eingeliefert wird. Wird das localhost wirklich von Postfix eingefügt oder 
>> kommt das schon von SquirrelMail?
> 
> also ich habe den postfix eingerichtet. Er rennt auf Host A, wenn ich
> von Server B eine Mail dahin sende kommt dieses Log auf dem betroffenen
> Host A:
> 
> Mar 17 17:13:51 static postfix/smtpd[3423]: connect from
> mx01.insentic.de[213.239.217.51]
> Mar 17 17:13:52 static postfix/smtpd[3423]: 1B53F11E0088:
> client=mx01.insentic.de[213.239.217.51]
> Mar 17 17:13:52 static postfix/cleanup[3427]: 1B53F11E0088:
> message-id=<49BFCB35.7030402 at marcel-hartmann.com>
> Mar 17 17:13:52 static postfix/qmgr[1932]: 1B53F11E0088:
> from=<mail at marcel-hartmann.com>, size=742, nrcpt=1 (queue active)
> Mar 17 17:13:52 static postfix/smtpd[3423]: disconnect from
> mx01.insentic.de[213.239.217.51]
> Mar 17 17:13:56 static postfix/smtpd[3430]: connect from
> localhost.localdomain[127.0.0.1]
> Mar 17 17:13:56 static postfix/smtpd[3430]: B9C7A11E008C:
> client=localhost.localdomain[127.0.0.1]
> Mar 17 17:13:56 static postfix/cleanup[3427]: B9C7A11E008C:
> message-id=<49BFCB35.7030402 at marcel-hartmann.com>
> Mar 17 17:13:56 static postfix/qmgr[1932]: B9C7A11E008C:
> from=<mail at marcel-hartmann.com>, size=1334, nrcpt=1 (queue active)
> Mar 17 17:13:56 static postfix/smtpd[3430]: disconnect from
> localhost.localdomain[127.0.0.1]
> Mar 17 17:13:56 static postfix/local[3431]: B9C7A11E008C:
> to=<snitch at domain.tld>, relay=local, delay=0.09, delays=0.07/0.01/0/0,
> dsn=2.0.0, status=sent (delivered to maildir)
> Mar 17 17:13:56 static postfix/qmgr[1932]: B9C7A11E008C: removed
> Mar 17 17:13:56 static amavis[32445]: (32445-02) Passed CLEAN,
> [213.239.217.51] [213.239.217.51] <mail at marcel-hartmann.com> ->
> <snitch at domain.tld>, Message-ID: <49BFCB35.7030402 at marcel-hartmann.com>,
> mail_id: B+yCQVF6AnfO, Hits: 1.45, queued_as: B9C7A11E008C, 4704 ms
> Mar 17 17:13:56 static postfix/smtp[3428]: 1B53F11E0088:
> to=<snitch at domain.tld>, relay=127.0.0.1[127.0.0.1]:10024, delay=5,
> delays=0.31/0.01/0.01/4.7, dsn=2.6.0, status=sent (250 2.6.0 Ok,
> id=32445-02, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as
> B9C7A11E008C)
> Mar 17 17:13:56 static postfix/qmgr[1932]: 1B53F11E0088: removed

Okay, und wo siehst du hier eine Umschreibung auf user at localhost.domain.tld???
Ich sehe zumindest keine. Das Log und deine Beschreibung passen nicht zusammen.

> 
> Beim eintreffen mappt er die Adresse user at domain.tld nach
> user at localhost.domain.tld. Wo ist da denn nun der fehler? Hier postconf -n:
> 
> # postconf- n
> -bash: postconf-: command not found
> [root at static init.d]# postconf -n
> address_verify_map = btree:/var/spool/postfix/verified_addresses
> alias_database = hash:/etc/aliases
> alias_maps = hash:/etc/aliases
> body_checks = pcre:/etc/postfix/maps/body_checks
> broken_sasl_auth_clients = yes
> command_directory = /usr/sbin
> config_directory = /etc/postfix
> content_filter = smtp-amavis:[127.0.0.1]:10024
> daemon_directory = /usr/libexec/postfix
> debug_peer_level = 2
> default_rbl_reply = $rbl_code Service unavailable; $rbl_class
> [$rbl_what] blocked using $rbl_domain
> disable_vrfy_command = yes
> header_checks = pcre:/etc/postfix/maps/header_checks
> home_mailbox = Maildir/
> html_directory = no
> inet_interfaces = all
> mail_owner = postfix
> mail_spool_directory = /var/spool/mail
> mailbox_size_limit = 268435456
> mailq_path = /usr/bin/mailq.postfix
> message_size_limit = 10485760
> mime_header_checks = pcre:/etc/postfix/maps/mime_header_checks
> mydestination = $myhostname, $mydomain
> mydomain = domain.tld
> myhostname = mail.domain.tld

Wenn die Adressen nicht fqdn sind, und Postfix sie ergänzt, dann solltest du
hier einen passenden Wert eintragen:

myorigin = $mydomain

> newaliases_path = /usr/bin/newaliases.postfix
> queue_directory = /var/spool/postfix
> relay_domains = $mydestination
> sendmail_path = /usr/sbin/sendmail.postfix
> setgid_group = postdrop
> smtpd_banner = $myhostname ESMTP $mail_name
> smtpd_client_restrictions = reject_rbl_client sbl.spamhaus.org,        
> reject_rbl_client cbl.abuseat.org,      reject_rbl_client dnsbl.sorbs.net
> smtpd_data_restrictions = reject_unauth_pipelining,       
> reject_multi_recipient_bounce,        permit
> smtpd_error_sleep_time = 1s
> smtpd_hard_error_limit = 20
> smtpd_helo_required = yes
> smtpd_helo_restrictions = check_helo_access
> hash:/etc/postfix/maps/helo_access,        
> reject_invalid_hostname,        reject_non_fqdn_hostname
> smtpd_recipient_restrictions = reject_non_fqdn_recipient      
> reject_non_fqdn_sender       check_recipient_access
> pcre:/etc/postfix/maps/apostroph      
> reject_unknown_sender_domain       reject_unknown_recipient_domain      
> permit_mynetworks       permit_sasl_authenticated      
> reject_unauth_destination       reject_multi_recipient_bounce      
> reject_unlisted_recipient       reject_rbl_client zen.spamhaus.org      
> reject_non_fqdn_hostname       reject_invalid_hostname      
> check_helo_access pcre:/etc/postfix/maps/helo_checks      
> check_sender_mx_access cidr:/etc/postfix/maps/bogus_mx      
> reject_rhsbl_sender dsn.rfc-ignorant.org       check_recipient_access
> hash:/etc/postfix/maps/recipient_access
> smtpd_sasl_auth_enable = yes
> smtpd_sasl_local_domain =
> smtpd_sasl_security_options = noanonymous
> smtpd_sender_restrictions = check_sender_access
> hash:/etc/postfix/maps/check_sender     reject_non_fqdn_sender,        
> reject_unknown_sender_domain
> smtpd_soft_error_limit = 10
> soft_bounce = no
> unknown_address_reject_code = 550
> unknown_local_recipient_reject_code = 550
> unverified_recipient_reject_code = 550
> 
> Liegt das am amavisd-new config evtl? Ich bin überfragt wie cih das
> lösen soll, in mydestination ist nix mehr drin von localhost und
> /etc/hosts hat auch nur diese Einträge:
> 127.0.0.1       localhost.localdomain localhost

Amavisd-new schreibt die Mails nicht um.

-- 
Sandy

Antworten bitte nur in die Mailingliste!
PMs bitte an: news-reply2 (@) japantest (.) homelinux (.) com



Mehr Informationen über die Mailingliste Postfixbuch-users