Is google apps sending the email, or my server?
no fancy stuff like Courier as the guide says:
I have my domain name's mx records setup for google apps:
ASPMX.L.GOOGLE.COM
ALT1.ASPMX.L.GOOGLE.COM
etc….
The only info I gave postfix was my domain name.
I set the mail_path in php.ini
sendmail_path = "/usr/sbin/sendmail -t -i"
I tested the php mail() function and it works.
Here is my question:
My mail.log file shows:
May 25 22:52:44 [i]servername[/i] postfix/smtp[3223]: 07302A1C6: to=<test34322@yahoo.com>, relay=ASPMX.L.GOOGLE.COM[74.125.157.27]:25, delay=4.4, delays=0.02/0.01/3.7/0.67, dsn=2.0.0, status=sent (250 2.0.0 OK 1274842364 v21si662812ybk.37)</test34322@yahoo.com>
Is this going out from google's smtp server? My concern is that I do not want to hit there 500 email / day limit. I am guessing postfix talks to my domain name, then my domain name's mx is set to google, so google's smtp is used, and I am limited by google's email limit.
Thanks for any insight!
2 Replies
With that said, I have no clue why it's contacting Google's SMTP servers to send a message to a Yahoo address. Can you post your main.cf and master.cf file?
I have never manually set anything to use google's smtp. The place I added options to talk with google would be through my domain's mx settings.
I guess I do not understand what the MX records do, so I don't know if using them limits me to google's 500 email / day limit.
> With that said, I have no clue why it's contacting Google's SMTP servers to send a message to a Yahoo address. Can you post your main.cf and master.cf file?
Maybe my server is using postfix as smtp, and the mail log was showing my google MX record?
postfix/smtp[3223]
relay=ASPMX.L.GOOGLE.COM[74.125.157.27]:25
My main.cf and master.cf should be really close to default:
main.cf:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
# 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_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
myhostname = mail.mysite.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mail.mysite.com, localhost, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
master.cf:
#old-cyrus unix - n n - - pipe
# flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
#
# ====================================================================
#
# See the Postfix UUCP_README file for configuration details.
#
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
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=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}