[postfix-users] Virtual_mailbox_domains "loops back to myself"
Hallo,
ja, ich weiß, das ist eigentlich ne StandardFrage die schon 1000x gestellt und 1000x beantwortet wurde. Leider haben mir alle Tips aus dem Netz nicht weiter geholfen, ich kriegs aber nicht hin.
Ein postmap -q "domain.de" mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf gab ne "1" aus, sollte also passen. Trotzdem fühl sich der Postfix für Mails von außen nicht zuständig. Wenn ich ne Mail direkt von Server losschicke funktioniert das ganze.
Hier mal der Output von postconf -n:
alias_maps = hash:/etc/aliases biff = no canonical_maps = hash:/etc/postfix/canonical command_directory = /usr/sbin config_directory = /etc/postfix content_filter = amavisfeed:[127.0.0.1]:10024 daemon_directory = /usr/lib/postfix debug_peer_level = 6 defer_transports = delay_warning_time = 1h disable_dns_lookups = no disable_mime_output_conversion = no html_directory = /usr/share/doc/packages/postfix-doc/html inet_interfaces = all inet_protocols = all mail_owner = postfix mail_spool_directory = /var/mail mailbox_command = /usr/lib/dovecot/deliver 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 message_strip_characters = \0 mydestination = $myhostname, localhost.$mydomain myhostname = mail.hondapower.de mynetworks = 127.0.0.0/8 mynetworks_style = subnet myorigin = hondapower.de newaliases_path = /usr/bin/newaliases queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/packages/postfix-doc/README_FILES receive_override_options = no_address_mappings relayhost = relocated_maps = hash:/etc/postfix/relocated sample_directory = /usr/share/doc/packages/postfix-doc/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_delay_reject = yes smtpd_helo_required = no smtpd_helo_restrictions = smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_path = private/auth smtpd_sasl_type = dovecot smtpd_sender_restrictions = hash:/etc/postfix/access smtpd_tls_auth_only = yes smtpd_tls_cert_file = /etc/postfix/smtpd.cert smtpd_tls_key_file = /etc/postfix/smtpd.key smtpd_use_tls = no strict_8bitmime = no strict_rfc821_envelopes = no transport_maps = hash:/etc/postfix/transport unknown_local_recipient_reject_code = 450 virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-emai l2email.cf virtual_gid_maps = static:5000 virtual_mailbox_base = /var/mail virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf virtual_transport = dovecot virtual_uid_maps = static:5000
Und die master.cf:
# # Postfix master process configuration file. For details on the format # of the file, see the Postfix master(5) manual page. # # ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # ========================================================================== smtp inet n - n - - smtpd -o content_filter=amavisfeed: #submission inet n - n - - smtpd # -o smtpd_etrn_restrictions=reject # -o smtpd_client_restrictions=permit_sasl_authenticated,reject #smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes # -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes #submission inet n - n - - smtpd # -o smtpd_etrn_restrictions=reject # -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes #628 inet n - n - - qmqpd pickup fifo n - n 60 1 pickup cleanup unix n - n - 0 cleanup qmgr fifo n - n 300 1 qmgr #qmgr fifo n - n 300 1 oqmgr #tlsmgr unix - - n 1000? 1 tlsmgr rewrite unix - - n - - trivial-rewrite bounce unix - - n - 0 bounce defer unix - - n - 0 bounce trace unix - - n - 0 bounce verify unix - - n - 1 verify flush unix n - n 1000? 0 flush proxymap unix - - n - - proxymap smtp unix - - n - - smtp # When relaying mail as backup MX, disable fallback_relay to avoid MX loops relay unix - - n - - smtp -o fallback_relay= # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 showq unix n - n - - showq error unix - - n - - error discard unix - - n - - discard local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - n - - lmtp anvil unix - - n - 1 anvil 127.0.0.1:10025 inet n - n - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_delay_reject=no -o smtpd_restriction_classes= -o smtpd_client_restrictions= -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
scache unix - - n - 1 scache # # ==================================================================== # Interfaces to non-Postfix software. Be sure to examine the manual # pages of the non-Postfix software to find out what options it wants. # # Many of the following services use the Postfix pipe(8) delivery # agent. See the pipe(8) man page for information about ${recipient} # and other message envelope options. # ==================================================================== # # maildrop. See the Postfix MAILDROP_README file for details. # Also specify in main.cf: maildrop_destination_recipient_limit=1 # maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient} cyrus unix - n n - - pipe user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user} 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=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient procmail unix - n n - - pipe flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient} #spamfilter unix - n n - - pipe # flags=Rq user=filter argv=/usr/bin/postfixfilter -f ${sender} -- ${recipient} amavisfeed unix - - n - 2 smtp -o lmtp_data_done_timeout=1200 -o lmtp_send_xforward_command=yes -o disable_dns_lookups=yes dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop} -n -m ${extension}
Wenn ihr sonst noch was an Infos braucht bitte melden.
Gruß
Daniel
__________ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 4536 (20091023) __________
E-Mail wurde geprüft mit ESET NOD32 Antivirus.
Servus Daniel,
also bei mir gibt eine entsprechende MySQL-Abfrage die Domain zurück, keine 1:
srv:~# postmap -q domain.de mysql:/etc/postfix/sql/mysql_virtual_mailbox_domains.cf domain.de
Ciao, Werner
-----Ursprüngliche Nachricht----- Von: postfix-users-bounces+dspannbauer=web.de@de.postfix.org [mailto:postfix-users-bounces+dspannbauer=web.de@de.postfix.org] Im Auftrag von Werner Detter Gesendet: Freitag, 23. Oktober 2009 20:13 An: Mailing-Liste der deutschsprachigen Postfix Gemeinschaft Betreff: Re: [postfix-users] Virtual_mailbox_domains "loops back to myself"
Servus Daniel,
also bei mir gibt eine entsprechende MySQL-Abfrage die Domain zurück, keine 1:
srv:~# postmap -q domain.de mysql:/etc/postfix/sql/mysql_virtual_mailbox_domains.cf domain.de
Hmmm, damit lässt sich doch mal was anfangen. Ich übrprüf das gleich mal. Ich hab immer nur gesehen das da ne 1 zurück kommen soll.....
Gruß
Daniel
Ciao, Werner
postfix-users mailing list postfix-users@de.postfix.org http://de.postfix.org/cgi-bin/mailman/listinfo/postfix-users
__________ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 4537 (20091023) __________
E-Mail wurde geprüft mit ESET NOD32 Antivirus.
-----Ursprüngliche Nachricht----- Von: postfix-users-bounces+dspannbauer=web.de@de.postfix.org [mailto:postfix-users-bounces+dspannbauer=web.de@de.postfix.org] Im Auftrag von Daniel Spannbauer Gesendet: Freitag, 23. Oktober 2009 21:32 An: 'Mailing-Liste der deutschsprachigen Postfix Gemeinschaft' Betreff: Re: [postfix-users] Virtual_mailbox_domains "loops back to myself"
-----Ursprüngliche Nachricht----- Von: postfix-users-bounces+dspannbauer=web.de@de.postfix.org [mailto:postfix-users-bounces+dspannbauer=web.de@de.postfix.org] Im Auftrag von Werner Detter Gesendet: Freitag, 23. Oktober 2009 20:13 An: Mailing-Liste der deutschsprachigen Postfix Gemeinschaft Betreff: Re: [postfix-users] Virtual_mailbox_domains "loops back to myself"
Servus Daniel,
also bei mir gibt eine entsprechende MySQL-Abfrage die Domain zurück, keine 1:
srv:~# postmap -q domain.de mysql:/etc/postfix/sql/mysql_virtual_mailbox_domains.cf domain.de
Hmmm, damit lässt sich doch mal was anfangen. Ich übrprüf das gleich mal. Ich hab immer nur gesehen das da ne 1 zurück kommen soll.....
Ok, gecheckt. Ich hab da ne Anleitung im Netz gefunden, da soll auch 1 raus kommen. Wie sieht denn bei dir /etc/postfix/sql/mysql_virtual_mailbox_domains.cf aus? Und wie sehen bei dir die Domain-Einträge in der DB aus?
Meine mysql_virtual_mailbox_domains.cf
user = mailuser password = kaji4Eip hosts = 127.0.0.1 dbname = mailserver query = SELECT 1 FROM virtual_domains WHERE name='%s'
Gruß
Daniel
Gruß
Daniel
Ciao, Werner
postfix-users mailing list postfix-users@de.postfix.org http://de.postfix.org/cgi-bin/mailman/listinfo/postfix-users
__________ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 4537 (20091023) __________
E-Mail wurde geprüft mit ESET NOD32 Antivirus.
postfix-users mailing list postfix-users@de.postfix.org http://de.postfix.org/cgi-bin/mailman/listinfo/postfix-users
__________ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 4537 (20091023) __________
E-Mail wurde geprüft mit ESET NOD32 Antivirus.
__________ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 4537 (20091023) __________
E-Mail wurde geprüft mit ESET NOD32 Antivirus.
Hi,
Ok, gecheckt. Ich hab da ne Anleitung im Netz gefunden, da soll auch 1 raus kommen.
Aha, na wenn die Anleitung das sagt ;)
Wie sieht denn bei dir /etc/postfix/sql/mysql_virtual_mailbox_domains.cf aus? Und wie sehen bei dir die Domain-Einträge in der DB aus?
user = postfix password = wasauchimmer host = localhost dbname = mail query = SELECT domain FROM domain WHERE domain='%s' AND active = '1'
Ciao, Werner
-----Ursprüngliche Nachricht----- Von: postfix-users-bounces+dspannbauer=web.de@de.postfix.org [mailto:postfix-users-bounces+dspannbauer=web.de@de.postfix.org] Im Auftrag von Werner Detter Gesendet: Samstag, 24. Oktober 2009 12:12 An: Mailing-Liste der deutschsprachigen Postfix Gemeinschaft Betreff: Re: [postfix-users] Virtual_mailbox_domains "loops back to myself"
Hi,
Ok, gecheckt. Ich hab da ne Anleitung im Netz gefunden, da soll auch
1 raus
kommen.
Aha, na wenn die Anleitung das sagt ;)
Naja, die Anleitung hat die gleiche Grundstrucktur wie meine DB, das Script ist auch das gleiche, sollte also passen.
Wie sieht denn bei dir
/etc/postfix/sql/mysql_virtual_mailbox_domains.cf
aus? Und wie sehen bei dir die Domain-Einträge in der DB aus?
user = postfix password = wasauchimmer host = localhost dbname = mail query = SELECT domain FROM domain WHERE domain='%s' AND active = '1'
Drum kommt da bei dir die Domain raus. Dein Script such nach der Domain, meins nach der ID. Drum kommt bei mir 1 raus (die ID) und bei dir die Domain.
Hmmm, muss ich wohl weiter suchen....
Gruß
Daniel
Ciao, Werner _______________________________________________ postfix-users mailing list postfix-users@de.postfix.org http://de.postfix.org/cgi-bin/mailman/listinfo/postfix-users
__________ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 4538 (20091024) __________
E-Mail wurde geprüft mit ESET NOD32 Antivirus.
participants (2)
-
Daniel Spannbauer
-
Werner Detter