On 2/21/2011 6:09 PM, Jean-Francois Cantin wrote:
We recently ditched M$Exchange and went to googleApps.
Unfortunately we have some windows servers that need to send
notification emails, but can't use TLS.
I setup postfix on an ubuntu 10.04 server. It is configured to
send all outbound email to google apps. This works without a
problem. And I have the windows servers using postfix server
successfully.
The issue I have is that all mail is sent as one user (the one
from the sasl_password file [[email protected]
<mailto:[email protected]>]).
(please post in plain text only)
So who's rewriting the address, you or the g-man?
Your logs will show. If it's you, don't do that. If it's
google, you may need to configure alternate senders (or
something like that) in gmail.
If your postfix is only sending mail to your own domain
@googleapps, you can probably simplify your setup by getting
rid of the SASL and relayhost stuff, and just deliver to
google as a normal SMTP client.
-- Noel Jones
For example : server01 is using the postfix server smtp on
port 25 (non TLS) to send emails. Instead of receiving an
email from [email protected]
<mailto:[email protected]>, I'm receiving the email
from [email protected]
<mailto:[email protected]>.
Am I trying to do something I should not? I'm new to postfix,
so there must be a concept that I'm missing here.
#postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
inet_interfaces = all
inet_protocols = all
mailbox_size_limit = 0
mydestination = postfix-test01, localhost.localdomain, localhost
myhostname = postfix-test01
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost = [smtp.gmail.com <http://smtp.gmail.com>]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
smtp_sasl_security_options = noanonymous
smtp_tls_session_cache_database =
btree:${data_directory}/smtp_scache
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database =
btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
--
Jean-Francois Cantin