sendmail setting for ssmtp

Just change home network to TPG adsl2+. Configuration is simple. The speed is good (~850KB/s), comparing my previous one’s 150KM/s (at maximum). Happy with it.

In order to send out email, need to update mail configuration.

TPG use

mail.tpg.com.au as pop3 server

mail.tpg.com.au as smtp server

I use mutt as mailer to receive mails and ssmtp as a sendmail agent.

mutt is easy, just update the “From ” tag at ~/.muttrc
ssmtp configuration took a bit time to sort. Two spots to upgrade

/etc/ssmtp/ssmtp.conf

update this line
mailhub=mail.tpg.com.au

/etc/ssmtp/revaliases
change line alike this
local_user:tpg_user@tpg.com.au:mail.tpg.com.au

to check if the smtp server is responding

$ telnet mail.tpg.com.au 25
Trying 203.12.160.34…
Connected to mail.tpg.com.au.
Escape character is ”.
220 mail7.tpgi.com.au ESMTP Sendmail ready.
helo mail.fdfdasfdas.com.au
250 mail7.tpgi.com.au Hello x [xxx.xxx.xxx.xxx], pleased to meet you mail from:
250 2.1.0 … Sender ok
rcpt to:
250 2.1.5 … Recipient ok
quit
221 2.0.0 mail7.tpgi.com.au closing connection
Connection closed by foreign host.

My argument is to use “x.y.z” where “x.y.z” resolves to your IP address instead of using “tpg.com.au” or something made up. Using just “tpg.com.au” will result in mail not being accepted by more strict mail servers. E.g. Exim’s “helo_try_verify_hosts” option:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s