Postfix beachtet virtuelle Domains nicht

microhome
Posts: 120
Joined: 2004-04-04 21:24

Postfix beachtet virtuelle Domains nicht

Post by microhome »

Hallo ihr Lieben,
leider kann ich zu meinem Problem nichts finden. Es scheint eigentlich ganz einfach lösbar zu sein aber irgendwie bekomme ich das nicht hin. Mein Postfix beachtet die Aliases, welche in virtual_alias stehen nicht. Als Antwort an diese Adressen bekomme ich jedes Mal: "User unknown in local recipient table". Erst wenn ich den Alias in die Lokal-Aliasdatei (ets/aliases) eintrage wird er beachtet...

postconf -n

Code: Select all

config_directory = /etc/postfix
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
delay_warning_time = 4h
myhostname = domain.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
local_recipient_maps =  myorigin = /etc/mailname
mydestination = localhost.localdomain, localhost
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
virtual_alias_maps = hash:/etc/postfix/virtual_alias
virtual_alias_domains = /etc/postfix/virtual_domains
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, reject_unknown_recipient_domain,  permit_sasl_authenticated, reject_unauth_destination
smtpd_helo_restrictions = permit_mynetworks, reject_invalid_hostname, reject_non_fqdn_hostname, reject_unknown_hostname
smtpd_sender_restrictions = reject_unknown_sender_domain
smtpd_helo_required = yes
strict_rfc821_envelopes = yes
home_mailbox = Maildir/


Vielen Dank für eure Hilfe!!
microhome
Top

User avatar
Joe User
Project Manager
Project Manager
Posts: 11518
Joined: 2003-02-27 01:00
Location: Hamburg

Re: Postfix beachtet virtuelle Domains nicht

Post by Joe User »

PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Top

microhome
Posts: 120
Joined: 2004-04-04 21:24

Re: Postfix beachtet virtuelle Domains nicht

Post by microhome »

Hmm ja gut, das löst aber mein Problem nicht..
Top

User avatar
Joe User
Project Manager
Project Manager
Posts: 11518
Joined: 2003-02-27 01:00
Location: Hamburg

Re: Postfix beachtet virtuelle Domains nicht

Post by Joe User »

Code: Select all

postconf -n
cat /etc/postfix/virtual_alias
cat /etc/postfix/virtual_domains
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Top

microhome
Posts: 120
Joined: 2004-04-04 21:24

Re: Postfix beachtet virtuelle Domains nicht

Post by microhome »

Die postconf -n Ausgabe findest du oben.

> cat /etc/postfix/virtual_alias
info@domain.com "|/usr/bin/php -f /var/www/https/helpdesk/includes/pipe.php"
support@domain.com "|/usr/bin/php -f /var/www/https/helpdesk/includes/pipe.php"

> cat /etc/postfix/virtual_domains
domain.com


Also müsste doch eigentlich alles so korrekt sein oder nicht?
Danke für die Hilfe Joe.
m!crohome
Top

User avatar
Joe User
Project Manager
Project Manager
Posts: 11518
Joined: 2003-02-27 01:00
Location: Hamburg

Re: Postfix beachtet virtuelle Domains nicht

Post by Joe User »

postconf -n sieht anders aus, zudem hast Du Fehler in Deiner main.cf, weshalb ich Dir den Link postete...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Top

microhome
Posts: 120
Joined: 2004-04-04 21:24

Re: Postfix beachtet virtuelle Domains nicht

Post by microhome »

Das ist meine Ausgabe von postconf -n. Ich habe lediglich Zeilenumbrüche hinzugefügt der Übersichtlichkeit halber. Und wo soll der Fehler sein? Ich finde ihn nicht.
Top

User avatar
Joe User
Project Manager
Project Manager
Posts: 11518
Joined: 2003-02-27 01:00
Location: Hamburg

Re: Postfix beachtet virtuelle Domains nicht

Post by Joe User »

1) postconf sortiert die Ausgabe alphabetisch, Deine Angabe ist unsortiert.
2) Folgende Zeilen sind überflüssig, weil Default:

Code: Select all

config_directory = /etc/postfix
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
inet_interfaces = all
smtpd_sasl_security_options = noanonymous

3) Folgende Zeilen müssen entsorgt werden, da fehlerhaft:

Code: Select all

append_dot_mydomain = no
delay_warning_time = 4h
local_recipient_maps =  myorigin = /etc/mailname

4) Folgende Zeile sollte entsorgt werden, da fehleranfälli:

Code: Select all

recipient_delimiter = +

5) Folgende Zeilen müssen korrigiert werden, da fehlkonfiguriert:

Code: Select all

myhostname = domain.com
mynetworks = 127.0.0.0/8
smtpd_recipient_restrictions = permit_mynetworks, reject_unknown_recipient_domain,  permit_sasl_authenticated, reject_unauth_destination
smtpd_helo_restrictions = permit_mynetworks, reject_invalid_hostname, reject_non_fqdn_hostname, reject_unknown_hostname
smtpd_sender_restrictions = reject_unknown_sender_domain

6) Folgende Zeilen sollten hinzugefügt beziehungsweise passend gesetzt werden:
siehe obigen Link
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Top

microhome
Posts: 120
Joined: 2004-04-04 21:24

Re: Postfix beachtet virtuelle Domains nicht

Post by microhome »

1) Nachdem ich die entsprechenden Einträge in der main.cf gelöscht habe sortiert postconf nun auch die Ausgabe alphabetisch
2) gelöscht
3) gelöscht
4) gelöscht
5) was ist denn daran falsch? Meinst du weil myhostname kein FQDN ist?
6) Habe ich hinzugefügt.

Postfix scheint die virtual_alias jetzt zu benutzen aber ich bekomme nun folgenden Fehler:
..<"|/usr/bin/php -f /var/www/https/helpdesk/includes/pipe.php"@domain.com>
(expanded from <support@domain.com>): unknown user: "|/usr/bin/php -f
/var/www/https/helpdesk/includes/pipe.php"



Warum wird die Mail nicht an pipe.php gepipet? Das hat vorher zumindest funktioniert (über die /etc/aliases)?!

Vielen Dank dir auf jeden Fall schonmal!
m!crohome
Top

User avatar
Joe User
Project Manager
Project Manager
Posts: 11518
Joined: 2003-02-27 01:00
Location: Hamburg

Re: Postfix beachtet virtuelle Domains nicht

Post by Joe User »

5) Die smtpd_* sind entweder unvollständig und/oder die Optionen in der falschen Reihenfolge. myhostname muss ein FQDN sein und mynetworks sollte durch mynetworks_style ersetzt werden (oder alle privaten und öffentlichen Netzwerke des MTA enthalten).
6) cat /etc/aliases
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Top

microhome
Posts: 120
Joined: 2004-04-04 21:24

Re: Postfix beachtet virtuelle Domains nicht

Post by microhome »

> cat /etc/aliases
postmaster: root
webmaster: root

> postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
allow_percent_hack = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
disable_vrfy_command = yes
home_mailbox = Maildir/
mailbox_size_limit = 0
mydestination = $myhostname, $mydomain, localhost
mydomain = domain.com
myhostname = mail.domain.com
mynetworks = 127.0.0.0/8
mynetworks_style = host
myorigin = $mydomain
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unknown_client_hostname, permit
smtpd_data_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_pipelining, permit
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, permit
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_hostname, reject_non_fqdn_hostname, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unauth_destination, permit
smtpd_sasl_auth_enable = yes
smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_sender, reject_unknown_sender_domain, permit
smtpd_tls_security_level = may
smtpd_use_tls = yes
virtual_alias_domains = /etc/postfix/virtual_domains
virtual_alias_maps = hash:/etc/postfix/virtual_alias
Top

User avatar
Joe User
Project Manager
Project Manager
Posts: 11518
Joined: 2003-02-27 01:00
Location: Hamburg

Re: Postfix beachtet virtuelle Domains nicht

Post by Joe User »

mynetworks muss noch raus und das SSL-Zertifikat rein. Was sagt das Log zur Pipe?
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Top

microhome
Posts: 120
Joined: 2004-04-04 21:24

Re: Postfix beachtet virtuelle Domains nicht

Post by microhome »

Habe ich geändert. So wie es ausschaut versucht postfix an die Pipe noch den Domainnamen zu hängen, aber warum?!

Code: Select all

Feb  1 18:22:51 domain postfix/smtpd[25729]: connect from perry.mc0.hosteurope.de[80.237.138.8]
Feb  1 18:22:51 domain postfix/smtpd[25729]: C79C74D4104: client=perry.mc0.hosteurope.de[80.237.138.8]
Feb  1 18:22:51 domain postfix/cleanup[25734]: C79C74D4104: message-id=<16195.UF1ZDg1ITAY=.1201886713.squirrel@webmailer.hosteurope.de>
Feb  1 18:22:51 domain postfix/qmgr[25726]: C79C74D4104: from=<info@otherdomain.de>, size=1253, nrcpt=1 (queue active)
Feb  1 18:22:51 domain postfix/error[25735]: C79C74D4104: to=<|/usr/bin/php -f /var/www/https/helpdesk/includes/pipe.php@domain.com>, orig_to=<info@domain.com>, relay=none, delay=0.04, delays=0.03/0/0/0.01, dsn=5.0.0, status=bounced (User unknown in virtual alias table)
Feb  1 18:22:51 domain postfix/cleanup[25734]: D14554D4110: message-id=<20080201172251.D14554D4110@mail.domain.com>
Feb  1 18:22:51 domain postfix/qmgr[25726]: D14554D4110: from=<>, size=3279, nrcpt=1 (queue active)
Feb  1 18:22:51 domain postfix/bounce[25737]: C79C74D4104: sender non-delivery notification: D14554D4110
Feb  1 18:22:51 domain postfix/qmgr[25726]: C79C74D4104: removed
Feb  1 18:22:51 domain postfix/smtpd[25729]: disconnect from perry.mc0.hosteurope.de[80.237.138.8]
Feb  1 18:22:54 domain postfix/smtp[25738]: D14554D4110: to=<info@otherdomain.de>, relay=mx0.otherdomain.de[80.237.138.5]:25, delay=2.8, delays=0.01/0/2.5/0.35, dsn=2.0.0, status=sent (250 OK id=1JKzdf-00059n-W3)
Feb  1 18:22:54 domain postfix/qmgr[25726]: D14554D4110: removed



Vielen Dank für die Hilfe.
m!crohome
Top

User avatar
Joe User
Project Manager
Project Manager
Posts: 11518
Joined: 2003-02-27 01:00
Location: Hamburg

Re: Postfix beachtet virtuelle Domains nicht

Post by Joe User »

Code: Select all

append_dot_mydomain = no

Sollte helfen, auch wenn es Nebenwirkungen haben kann...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Top

microhome
Posts: 120
Joined: 2004-04-04 21:24

Re: Postfix beachtet virtuelle Domains nicht

Post by microhome »

Kommt leider genau das Selbe bei bei heraus.

virtual_alias

Code: Select all

info@domain.com      "|/usr/bin/php -f /var/www/https/helpdesk/includes/pipe.php"


postconf -n

Code: Select all

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
allow_percent_hack = no
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
disable_vrfy_command = yes
home_mailbox = Maildir/
mailbox_size_limit = 0
mydestination = localhost
mydomain = domain.com
myhostname = mail.domain.com
mynetworks_style = host
myorigin = $mydomain
smtpd_client_restrictions = permit_mynetworks,  permit_sasl_authenticated,  reject_unknown_client_hostname,  permit
smtpd_data_restrictions = permit_mynetworks,  permit_sasl_authenticated,  reject_unauth_pipelining,  permit
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,  permit_sasl_authenticated,  reject_invalid_helo_hostname,  reject_non_fqdn_helo_hostname,  permit
smtpd_recipient_restrictions = permit_mynetworks,  permit_sasl_authenticated,  reject_invalid_hostname,  reject_non_fqdn_hostname,  reject_non_fqdn_recipient,  reject_unknown_recipient_domain,  reject_unauth_destination,    permit
smtpd_sasl_auth_enable = yes
smtpd_sender_restrictions = permit_mynetworks,  permit_sasl_authenticated,  reject_non_fqdn_sender,  reject_unknown_sender_domain,  permit
smtpd_tls_CAfile = /etc/postfix/ssl/demoCA/cacert.pem
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/postfix/ssl/server-crt.pem
smtpd_tls_key_file = /etc/postfix/ssl/server-key.pem
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:/var/run/smtpd_tls_session_cache
smtpd_use_tls = yes
virtual_alias_domains = /etc/postfix/virtual_domains
virtual_alias_maps = hash:/etc/postfix/virtual_alias


Hast du noch eine Idee?
Top