Google Apps with own SMTP server and local emails -


currently we're using google's smtp send emails our webserver registered users. because of restrictions (500 mails per day) that's no longer feasible. therefore set postfix on our machine , reconfigured webapps use one. now, postfix delivers emails going our own emails addresses (*@gibbonsfive.de) locally , not google apps anymore. on top, won't deliver email mailing lists configured on google server because says user / alias not exist. there way make work following way:

  • google apps our email adresses, including google's smtp server (working)

  • webapps using our own smtp (working) , emails send user our own domain (*@gibbonsfive.de) not delivered locally (does not work)

our setup:

bind-config domain:

... ns                      in            78.46.106.246 ns1.rollernet.us.       in            208.79.240.3 ns2.rollernet.us.       in            208.79.241.3  @                       in      mx    10    aspmx.l.google.com. @                       in      mx    10    alt1.aspmx.l.google.com. @                       in      mx    10    alt2.aspmx.l.google.com. @                       in      mx    10     aspmx2.googlemail.com. @                       in            78.46.106.246  mail                    in            78.46.106.246 ... 

/etc/postfix/main.cf

smtpd_banner = $myhostname esmtp $mail_name (debian/gnu) biff = no append_dot_mydomain = no readme_directory = no  message_size_limit = 209715200 smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key  smtp_use_tls=yes smtpd_use_tls=yes smtpd_tls_auth_only=yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache  smtpd_sasl_path=smtpd smtpd_sasl_auth_enable=yes smtpd_sasl_security_options=noanonymous smtpd_sasl_local_domain = broken_sasl_auth_clients=yes smtpd_sender_restrictions =         permit_sasl_authenticated         permit_mynetworks smtpd_recipient_restrictions=          permit_mynetworks,          permit_sasl_authenticated,          reject_unauth_destinatio  smtpd_helo_required=yes smtpd_helo_restrictions=reject_invalid_helo_hostname myhostname = romeo.gibbonsfive.de  myorigin = gibbonsfive.de  alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases mydestination = localhost, localhost.$myorigin, $myorigin relayhost =  mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = 

changing 'mydestination' configuration fixed it!

mydestination = $myhostname, localhost.$mydomain, localhost 

Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -