postfix relayhost

wolle13

New Member
Hallo zusammen,

ich habe für daheim via ADSL eine dovecot, mysql, postfix installation auf ubuntu 14.04 am laufen. Meine main.cf sieht wie folgt aus:

Code:
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
readme_directory = no
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mydestination =
mailbox_size_limit = 51200000
message_size_limit = 51200000
recipient_delimiter =
inet_interfaces = all
myorigin = mail.da.heim
inet_protocols = all

##### TLS parameters ######
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

###### SASL Auth ######
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes

###### Use Dovecot LMTP Service to deliver Mails to Dovecot ######
virtual_transport = lmtp:unix:private/dovecot-lmtp

##### Only allow mail transport if client is authenticated or in own network (PHP Scripts, ...) ######
smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination

###### MySQL Connection ######
virtual_alias_maps = mysql:/etc/postfix/virtual/mysql-aliases.cf
virtual_mailbox_maps = mysql:/etc/postfix/virtual/mysql-maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/virtual/mysql-domains.cf
local_recipient_maps = $virtual_mailbox_maps

####### Relay host with authentication  #########
#relayhost = smtp.1und1.de
#smtp_sasl_auth_enable = yes
#smtp_sasl_password_maps =  hash:/etc/postfix/sasl_passwd
#smtp_sasl_security_options = noanonymous

Postfix funktioniert auch soweit. Nur wenn ich die letzten vier Zeilen aktiviere klappt das mit dem Relay nicht.
Liegt es daran, dass ich die Zugangsdaten fürs Relay auch irgendwie in die mysql DB legen müsste oder sollte das so trotzdem tun?

Wolle
 
Back
Top