Configuring Sendmail for UF’s SMTP

Our Ubuntu web host, hosted with OSG, was not able to send mail (using PHP mail) outside of UF. An OSG tech said our From: header should be a valid address at UF (check) and that the logs at showed those messages never made it there.

The solution was to configure sendmail to use as the “smart” relay host (as it’s described in the config file):

$ sudo nano /etc/mail/

Ctrl+w and search for smart. On the line below, add directly after DS with no space. The result should be:

# "Smart" relay host (may be null)

Ctrl-x and save the buffer.

Restart sendmail: $ sudo /etc/init.d/sendmail restart

As soon as I did this, the queued messages were sent out. I still don’t know why messages to succeeded while others sat in the queue.

Leave a Reply