virtual_alias_maps Postfix
virtual_alias_maps Postfix
Guten Abend,
ich versuche gerade mehrere Domains auf einem Host laufen zu lassen.
Auf meinem anderen Systemen gehe ich so vor das einmal /etc/postfix/virtual und /etc/postfix/virtual_domains erstelle
main.cf
virtual_maps = hash:/etc/postfix/virtual, hash:/etc/postfix/virtual_domains
virtual ist die Syntax:
user@domain.de system_account
in virtual_domains:
domain.de system_account
Aber immer wenn ich an den Host eine Mail sende kommt nur:
Recipient address rejected: User unknown in virtual alias table;
Ich verstehe es nicht zumal ich die gleiche main.cf wie auf den anderen Systemen wo es anstandslos läuft, verwendet habe :-/
Jemand einen Tipp?
Grüsse
Marcus
ich versuche gerade mehrere Domains auf einem Host laufen zu lassen.
Auf meinem anderen Systemen gehe ich so vor das einmal /etc/postfix/virtual und /etc/postfix/virtual_domains erstelle
main.cf
virtual_maps = hash:/etc/postfix/virtual, hash:/etc/postfix/virtual_domains
virtual ist die Syntax:
user@domain.de system_account
in virtual_domains:
domain.de system_account
Aber immer wenn ich an den Host eine Mail sende kommt nur:
Recipient address rejected: User unknown in virtual alias table;
Ich verstehe es nicht zumal ich die gleiche main.cf wie auf den anderen Systemen wo es anstandslos läuft, verwendet habe :-/
Jemand einen Tipp?
Grüsse
Marcus
Re: virtual_alias_maps Postfix
postconf -n
alias_maps = hash:/etc/aliases
biff = no
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
defer_transports =
disable_dns_lookups = no
html_directory = /usr/share/doc/packages/postfix/html
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command =
mailbox_size_limit = 0
mailbox_transport =
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 = 10240000
mydestination = $myhostname localhost.$mydomain $mydomain localhost
myhostname = mail.host.de
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relayhost =
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
smtp_sasl_auth_enable = no
smtp_use_tls = no
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks
smtpd_use_tls = no
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_maps scheint wohl nicht non-standard zu sein, taucht hier nicht auf
alias_maps = hash:/etc/aliases
biff = no
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
defer_transports =
disable_dns_lookups = no
html_directory = /usr/share/doc/packages/postfix/html
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command =
mailbox_size_limit = 0
mailbox_transport =
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 = 10240000
mydestination = $myhostname localhost.$mydomain $mydomain localhost
myhostname = mail.host.de
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relayhost =
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
smtp_sasl_auth_enable = no
smtp_use_tls = no
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks
smtpd_use_tls = no
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_maps scheint wohl nicht non-standard zu sein, taucht hier nicht auf
Postfix schon reloaded?
Code: Select all
postfix reload
postfix check
Last edited by m.c.s. on 2005-11-01 21:47, edited 1 time in total.
-
lord_pinhead
- Posts: 774
- Joined: 2004-04-26 15:57
Re: virtual_alias_maps Postfix
Hast du den Systemaccount auch angelegt? Dumme frage ja, aber manchmal vergisst man etwas :)
Sind die Virtuellen Domains in das Datenbankformat umgewandelt?
Versuchs mal und sag was zurückkommt
Sind die Virtuellen Domains in das Datenbankformat umgewandelt?
Code: Select all
postmap /etc/postfix/virtual
postmap /etc/postfix/virtual_domains
Re: virtual_alias_maps Postfix
postfix check gibt nichts zurück
auch beide postmap nichts.
DBs wurden einwandfrei erstellt.
Sys Acc ist angelegt.
Habe jetzt mal das hier probiert:
http://www.postfix.org/VIRTUAL_README.h ... tual_alias
Fehler bleibt weiterhin bestehen.
auch beide postmap nichts.
DBs wurden einwandfrei erstellt.
Sys Acc ist angelegt.
Habe jetzt mal das hier probiert:
http://www.postfix.org/VIRTUAL_README.h ... tual_alias
Fehler bleibt weiterhin bestehen.
Re: virtual_alias_maps Postfix
Es ist schon sehr verwunderlich, dass postconf -n keine virtual-Einträge zurückgibt. Wenn die Einträge in der /etc/postfix/main.cf gesetzt sind, sollten sie entweder im postconf auftreten oder eine Fehlermeldung beim Reload / Check ausgeben (erst postfix reload, danach postfix check). Ansonsten bin ich gerade mal ratlos :(
Edit: Huch, bei mir wird der Eintrag "virtual_maps" auch nicht in postconf angezeigt - funktioniert aber! Lass dich davon also nicht täuschen...
Edit: Huch, bei mir wird der Eintrag "virtual_maps" auch nicht in postconf angezeigt - funktioniert aber! Lass dich davon also nicht täuschen...
Last edited by m.c.s. on 2005-11-01 22:02, edited 2 times in total.
Re: virtual_alias_maps Postfix
ja so habe ich das gemacht
hab mal die main.cf so kopiert, das wichtigste
sample_directory = /usr/share/doc/packages/postfix/samples
# readme_directory: The location of the Postfix README files.
#
readme_directory = /usr/share/doc/packages/postfix/README_FILES
inet_protocols = all
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_maps = hash:/etc/postfix/virtual, hash:/etc/postfix/virtual_domains
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
myhostname = mail.host.de
program_directory = /usr/lib/postfix
inet_interfaces = all
masquerade_domains =
mydestination = $myhostname localhost.$mydomain $mydomain localhost
defer_transports =
disable_dns_lookups = no
relayhost =
mailbox_command =
mailbox_transport =
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks
smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination
smtp_sasl_auth_enable = no
smtpd_sasl_auth_enable = yes
smtpd_use_tls = no
smtp_use_tls = no
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 10240000
hab mal die main.cf so kopiert, das wichtigste
sample_directory = /usr/share/doc/packages/postfix/samples
# readme_directory: The location of the Postfix README files.
#
readme_directory = /usr/share/doc/packages/postfix/README_FILES
inet_protocols = all
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_maps = hash:/etc/postfix/virtual, hash:/etc/postfix/virtual_domains
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
myhostname = mail.host.de
program_directory = /usr/lib/postfix
inet_interfaces = all
masquerade_domains =
mydestination = $myhostname localhost.$mydomain $mydomain localhost
defer_transports =
disable_dns_lookups = no
relayhost =
mailbox_command =
mailbox_transport =
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks
smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination
smtp_sasl_auth_enable = no
smtpd_sasl_auth_enable = yes
smtpd_use_tls = no
smtp_use_tls = no
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 10240000
Re: virtual_alias_maps Postfix
irgendwas ist da faul
gerade mal den config check via webmin gemacht und da zeigt er die alias einträge auch nicht an
on-default parameters
alias_maps hash:/etc/aliases
biff no
canonical_maps hash:/etc/postfix/canonical
daemon_directory /usr/lib/postfix
html_directory /usr/share/doc/packages/postfix/html
inet_protocols all
mailbox_size_limit 0
manpage_directory /usr/share/man
masquerade_exceptions root
mydestination $myhostname localhost.$mydomain $mydomain localhost
myhostname mail.pro-dns.de
readme_directory /usr/share/doc/packages/postfix/README_FILES
relocated_maps hash:/etc/postfix/relocated
sample_directory /usr/share/doc/packages/postfix/samples
sender_canonical_maps hash:/etc/postfix/sender_canonical
setgid_group maildrop
smtpd_recipient_restrictions permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable yes
smtpd_sender_restrictions permit_sasl_authenticated, permit_mynetworks
transport_maps hash:/etc/postfix/transport
Was kann das denn sein?
gerade mal den config check via webmin gemacht und da zeigt er die alias einträge auch nicht an
on-default parameters
alias_maps hash:/etc/aliases
biff no
canonical_maps hash:/etc/postfix/canonical
daemon_directory /usr/lib/postfix
html_directory /usr/share/doc/packages/postfix/html
inet_protocols all
mailbox_size_limit 0
manpage_directory /usr/share/man
masquerade_exceptions root
mydestination $myhostname localhost.$mydomain $mydomain localhost
myhostname mail.pro-dns.de
readme_directory /usr/share/doc/packages/postfix/README_FILES
relocated_maps hash:/etc/postfix/relocated
sample_directory /usr/share/doc/packages/postfix/samples
sender_canonical_maps hash:/etc/postfix/sender_canonical
setgid_group maildrop
smtpd_recipient_restrictions permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable yes
smtpd_sender_restrictions permit_sasl_authenticated, permit_mynetworks
transport_maps hash:/etc/postfix/transport
Was kann das denn sein?
Re: virtual_alias_maps Postfix
Siehe noch meinen Edit oben!
Was sagt das Maillog?
Was sagt das Maillog?
Re: virtual_alias_maps Postfix
erscheint dort nicht mehr, weil virtual_maps ab 2.0 nicht mehr verwendet werden soll denke ich
http://www.postfix.org/postconf.5.html#virtual_maps
log sagt nur:
Recipient address rejected: User unknown in virtual alias table
http://www.postfix.org/postconf.5.html#virtual_maps
log sagt nur:
Recipient address rejected: User unknown in virtual alias table
-
lord_pinhead
- Posts: 774
- Joined: 2004-04-26 15:57
Re: virtual_alias_maps Postfix
Wo liegt das Maildir bzw. die Mailfile der User? Ich hab meine erste Postfix Installation mit der Hilfe hier gemacht zusammen mit nen Postfixbuch, von daher ist das recht eigenartig warum bei dir mit funktionierenden Datenbanken da nix kommt. Nutzt du irgendwelche Administrationshilfen die dazwischenfunken könnten?
Edit: Was mir aufgefallen ist, muss in der aktuellen Version rein zufällig ein Tabsprung sein zwischen domain und useraccount?
Edit: Was mir aufgefallen ist, muss in der aktuellen Version rein zufällig ein Tabsprung sein zwischen domain und useraccount?
Re: virtual_alias_maps Postfix
maildir is /var/spool/mail
Ich habe es mit dem Postfix Buch von O´Reilly von K.D.Dent gemacht und der Postfix Doku.
Ich habe es mit dem Postfix Buch von O´Reilly von K.D.Dent gemacht und der Postfix Doku.
-
lord_pinhead
- Posts: 774
- Joined: 2004-04-26 15:57
Re: virtual_alias_maps Postfix
Das Buch hab ich mir auch geholt, ist recht gut muss ich sagen. Aber ich fand Peer Heinlein´s Buch doch besser :) Aber zurück zum Thema. Sagen die Logs nur diese Spruch oder vielleicht das etwas fehlt? Wie sieht es mit den Berechtigungen der Maildirs aus? Poste am besten mal die komplette main.cf
Re: virtual_alias_maps Postfix
hab die faxen dicke
nun geht nichtmal die SASL authentifizierung.
Mache morgen die Kiste platt und fange von vorne an.
Mit dem Link von dir da oben
Meinst du das Buch?
http://www.amazon.de/exec/obidos/ASIN/3 ... 58-5368817
nun geht nichtmal die SASL authentifizierung.
Mache morgen die Kiste platt und fange von vorne an.
Mit dem Link von dir da oben
Meinst du das Buch?
http://www.amazon.de/exec/obidos/ASIN/3 ... 58-5368817
-
lord_pinhead
- Posts: 774
- Joined: 2004-04-26 15:57
Re: virtual_alias_maps Postfix
Jupp, genau das meinte ich. Du musst die Kiste net plätten, geh einfach mal die Config von dort durch und sicher deine bisherige
Re: virtual_alias_maps Postfix
Hi Lord,
werde es jetzt gleich nochmal nach dieser Anleitung http://www.tedesca.net/bez/homeoff/antispam.html angehen.
Eine Frage.
Wenn ihrer mehrere Domains auf einem Host laufen habt, habt ihr dann in den zonefiles für alle domains das gleiche als MX Record?
Also was weis ich, erste Domain ist http://www.schnixxer.de und hat den MX record mail.schnixxer.de
tragt ihr diesen Mailrecord dann in die anderen Zonefiles auch ein? Oder nehmt ihr für jede Domain die eigene mail.domain.de? (IP ist zwar immer die gleiche logischerweise, aber vielleicht hat damit mein Problem auch zu tun?)
Grüsse
Thomas
P.S. Buch habe ich bestellt, soll Samstag hier sein.
werde es jetzt gleich nochmal nach dieser Anleitung http://www.tedesca.net/bez/homeoff/antispam.html angehen.
Eine Frage.
Wenn ihrer mehrere Domains auf einem Host laufen habt, habt ihr dann in den zonefiles für alle domains das gleiche als MX Record?
Also was weis ich, erste Domain ist http://www.schnixxer.de und hat den MX record mail.schnixxer.de
tragt ihr diesen Mailrecord dann in die anderen Zonefiles auch ein? Oder nehmt ihr für jede Domain die eigene mail.domain.de? (IP ist zwar immer die gleiche logischerweise, aber vielleicht hat damit mein Problem auch zu tun?)
Grüsse
Thomas
P.S. Buch habe ich bestellt, soll Samstag hier sein.
Re: virtual_alias_maps Postfix
Problem gelöst. Habe Postix von Hand kompiliert, ohne Yast. Nun geht es....wtf....
Aber nun gut...
Aber nun gut...
Re: virtual_alias_maps Postfix
Die Syntax ist normalerweise (!Doppelpunkt!):thomas.km wrote:virtual ist die Syntax:
user@domain.de system_account
in virtual_domains:
domain.de system_account
Code: Select all
user@domain.tld: system_accountPayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings 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.
Wings for Life ● Wings 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.
Re: virtual_alias_maps Postfix
das ist falsch
Es geht hier um die virtual alias maps:
http://www.postfix.org/VIRTUAL_README.h ... tual_alias
Es geht hier um die virtual alias maps:
http://www.postfix.org/VIRTUAL_README.h ... tual_alias
-
lord_pinhead
- Posts: 774
- Joined: 2004-04-26 15:57
Re: virtual_alias_maps Postfix
Jupp, die /etc/aliases ist im übrigen
ersteres darf keine mail sein ;)
Code: Select all
account: hans@wurst.de, system_account