Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed May 26, 2010 5:46 pm 
Offline
Newbie

Joined: Wed May 26, 2010 5:30 pm
Posts: 2
I installed postfix on my vps, but only postfix...
no fancy stuff like Courier as the guide says:

http://library.linode.com/email/postfix ... .10-karmic

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:

Code:
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)


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!


Top
   
 Post subject:
PostPosted: Fri May 28, 2010 1:19 pm 
Offline
Senior Member

Joined: Mon Oct 12, 2009 1:20 am
Posts: 50
It's not possible for your server to be using Google's SMTP servers to send mail unless you have some custom SMTP authentication setup in Postfix.


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?


Top
   
 Post subject:
PostPosted: Fri May 28, 2010 5:55 pm 
Offline
Newbie

Joined: Wed May 26, 2010 5:30 pm
Posts: 2
Thanks for the reply.

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.

Quote:
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?

Code:
postfix/smtp[3223]

Code:
relay=ASPMX.L.GOOGLE.COM[74.125.157.27]:25



My main.cf and master.cf should be really close to default:

main.cf:

Code:
# 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:
Code:
#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}


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group