Postfixeinrichtung


Emmermacher

New Member
Hallo.

Bei der Einrichtung von Postfix sind wir auf ein Problem gestossen.
Bislang haben wir die Konten über die /etc/postfix/virtual an eine andere Domain geschickt (unsere Hauptdomain). Nun müssen auch zusätzlich "echte" Accounts zur Verfügung stellen. Schicke ich E-Mails an die betreffende Adresse, kommt eine Meldung zurück. das diese nicht in die virtual eingetragen ist. Das hatte ich auch schon probiert, funktioniert aber nicht. Postfix is leider nicht so richtig das Programm, mit dem wir uns hier auskennen. Eigentlich sollte man doch auch hier reelle und virtuelle E-Mailadressen mischen können.
In der /etc/postfix/access ist die korrekte Adresse eingetragen.
Mit postmap sind die Dateien auch kompiliert worden und postfix mit reload neu gestartet.
In der main.cf steht smtpd_sender_restrictions = hash:/etc/postfix/access.
Meiner Meinung sollte das ausreichen.

Was passt hier noch nicht?
Vielen Dank imvoraus für Eure Unterstützung.

Mit freundlichen Grüßen

Dirk Emmermacher
 
Hallo,

bitte einmal die Ausgabe
Code:
postconf -n
posten.

Die "smtpd_sender_restrictions" sind für etwas anderes da:
The smtpd_sender_restrictions parameter restricts what sender addresses this system accepts in MAIL FROM commands.
 
Hallo spack.

Das System nimmt Mails an, wie sieht. In meine virtual sind auch Adressen, an die weitergeleitet wird. Das funkioniert auch. Mein lokalen Konto,das die Mails halten soll, kann zwar Mails senden, aber die Zustellung an diese Adresse funktioniert nicht. Die Maildatei unter /var/spool/mail hat 0 bytes. Rechte sind rw für User und nichts für alle anderen

Hier ist meine postconf:
Code:
www2:/var/log # postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
biff = no
broken_sasl_auth_clients = no
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 20
default_privs = nobody
default_rbl_reply = $rbl_code RBLTRAP: You can't send us a E-Mail today!!!
defer_transports =
disable_dns_lookups = no
disable_mime_output_conversion = no
fallback_transport = cyrus
html_directory = /usr/share/doc/packages/postfix/html
inet_protocols = all
local_destination_concurrency_limit = 2
local_recipient_maps = unix:passwd.byname $alias_maps
mail_spool_directory = /var/mail
mailbox_command =
mailbox_size_limit = 0
mailbox_transport = procmail
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 = 45728640
mime_header_checks = pcre:/etc/postfix/body_check
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = ntb-infoline.de
myhostname = mail2.ntb-infoline.de
mynetworks = xxx.xxx.xxx.xxx/24, 127.0.0.0/8
myorigin = mail2.ntb-infoline.de
newaliases_path = /usr/bin/newaliases
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relay_domains = $mydestination, $virtual_domains
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
smtpd_sasl_auth_enable = no
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_use_tls = no
smtpd_use_tls = no
strict_8bitmime = no
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_domains = hash:/etc/postfix/virtual
virtual_alias_maps = hash:/etc/postfix/virtual
smtpd_banner = $myhostname ESMTP
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_helo_restrictions = 
permit_sasl_authenticated,
permit_mynetworks, 
reject_unauth_destination,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
reject_non_fqdn_hostname,
reject_invalid_hostname,
reject_rhsbl_client multi.surbl.org,
reject_rhsbl_client black.uribl.com,
reject_rbl_client bl.spamcop.net,
reject_rbl_client sbl-xbl.spamhaus.org,
reject_unauth_pipelining,
smtpd_recipient_restrictions = 
permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination,
reject_invalid_hostname,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
reject_rbl_client bl.spamcop.net,
reject_rbl_client sbl-xbl.spamhaus.org,
reject_rhsbl_client multi.surbl.org,
reject_rhsbl_client black.uribl.com,
smtpd_sender_restrictions = 
permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination,
reject_unknown_recipient_domain,
reject_rbl_client bl.spamcop.net,
reject_rbl_client sbl-xbl.spamhaus.org,
reject_rhsbl_client multi.surbl.org,
reject_rhsbl_client black.uribl.com,
reject_non_fqdn_sender, 
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
www2:/var/log #
Hier noch ein Auszug aus der /var/log/mail:
Code:
Apr 30 12:30:32 www2 postfix/smtpd[7691]: 3F5667A603: client=mu-out-0910.google.com[209.85.134.189]
Apr 30 12:30:32 www2 postfix/cleanup[7980]: 3F5667A603: message-id=<[email protected]>
Apr 30 12:30:32 www2 postfix/qmgr[7683]: 3F5667A603: from=<[email protected]>, size=2280, nrcpt=1 (queue active)
Apr 30 12:30:32 www2 procmail[8112]: Error while writing to "/var/log/procmail"
Apr 30 12:30:32 www2 spamd[15301]: spamd: connection from localhost 
Apr 30 12:30:32 www2 spamd[15301]: spamd: setuid to nobody succeeded
Apr 30 12:30:32 www2 spamd[15301]: spamd: processing message <[email protected]> for nobody:65534
Apr 30 12:30:32 www2 spamd[15301]: spamd: clean message (0.0/4.8) for nobody:65534 in 0.1 seconds, 2278 bytes.
Apr 30 12:30:32 www2 spamd[15301]: spamd: result: . 0 - scantime=0.1,size=2278,user=nobody,uid=65534,required_score=4.8,rhost=l ocalhost,raddr=127.0.0.1,rport=37089,mid=<[email protected]>,autolearn=failed
Apr 30 12:30:32 www2 spamd[15300]: prefork: child states: II
Apr 30 12:30:32 www2 postfix/pipe[8111]: 3F5667A603: to=<[email protected]>, orig_to=<[email protected]>, relay=procmail, delay=11, status=sent (mail2.ntb-infoline.de)
Apr 30 12:30:32 www2 postfix/qmgr[7683]: 3F5667A603: removed
Das Problem mit /var/log/procmail ist gelöst. Es fehlte noch die Schreibberechtigung.
In der virtual habe ich eine Weiterleitung eingetragen. Damit läuft es es erst einmal. Da werde ich dann nächste Woche weiter arbeiten.

Gruß

Dirk
 
Last edited by a moderator:

Back
Top