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 as pop3 server 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


update this line

change line alike this

to check if the smtp server is responding

$ telnet 25
Connected to
Escape character is ”.
220 ESMTP Sendmail ready.
250 Hello x [], pleased to meet you mail from:
250 2.1.0 … Sender ok
rcpt to:
250 2.1.5 … Recipient ok
221 2.0.0 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 “” or something made up. Using just “” 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: Logo

You are commenting using your 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