Setting up postfix and SMTP

axl_fugazi

Registered
I have some perl scripts that I run in my cron jobs. These scripts email results so I'm trying to setup postfix with SMTP I've got postfix starting up automatically now. To configure it to use SMTP I followed the tutorial given in this link:

http://postfix.state-of-mind.de/patrick.koetter/smtpauth/smtp_auth_mailservers.html

However, when my script sends an email, I don't seem to receive it. I looked at /var/log/mail.log and I'm seeing the following entries which doesn't make much sense to me.

Jan 15 02:33:25 Kanchenjunga postfix/cleanup[539]: 71031B9AB3: message-id=<20070115073324.71031B9AB3@c-68-80-243-222.hsd1.pa.comcast.net>
Jan 15 02:33:25 Kanchenjunga postfix/qmgr[541]: 71031B9AB3: from=<pgupta@c-68-80-243-222.hsd1.pa.comcast.net>, size=2264, nrcpt=2 (queue active)
Jan 15 02:33:25 Kanchenjunga postfix/smtp[543]: warning: mskan-in-02.villanova.edu[153.104.6.12] offered AUTH option multiple times
Jan 15 02:33:25 Kanchenjunga postfix/smtp[543]: 71031B9AB3: to=<pallav.gupta@villanova.edu>, relay=mskan-in-02.villanova.edu[153.104.6.12], delay=1, status=sent (250 2.5.0 Ok.)
Jan 15 02:33:28 Kanchenjunga postfix/smtp[542]: 71031B9AB3: to=<palllavgupta@gmail.com>, relay=gmail-smtp-in.l.google.com[209.85.133.114], delay=4, status=sent (250 2.0.0 OK 1168846410
d19si8400680and)

I've setup SMTP to be smtp.princeton.edu with the username/password in the sasl_passwd file as per link. What I want is to relay the message from localhost -> princeton machine which then will send the email out to the receipient.

Here is my /etc/postfix/main.cf file. I'm only pasting the relevant parts. I would appreciate if someone can give me suggestions as to what i'm doing wrong. I've search around considerably on the internet but can't seem to find a solution...

soft_bounce = no

queue_directory = /private/var/spool/postfix

command_directory = /usr/sbin

daemon_directory = /usr/libexec/postfix

mail_owner = postfix

#
#default_privs = nobody

#
#myhostname = host.domain.tld
#myhostname = virtual.domain.tld

#mydomain = domain.tld
#
#myorigin = $myhostname
#myorigin = $mydomain

# RECEIVING MAIL

#inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost

#proxy_interfaces =
#proxy_interfaces = 1.2.3.4

#mydestination = $myhostname, localhost.$mydomain, localhost
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
# mail.$mydomain, www.$mydomain, ftp.$mydomain

#
#relay_domains = $mydestination

#relayhost = $mydomain
#relayhost = [gateway.my.domain]
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]


# Added by Pallav. Jan 15, 2007
# SASL SUPPORT FOR SERVERS
#
# The following options set parameters needed by Postfix to enable
# Cyrus-SASL support for authentication of mail servers.
#
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
 
Back
Top