sendmail setup

Bob bob at
Wed Feb 7 01:39:29 UTC 2007

On Tue, 6 Feb 2007 22:35:05 +0100
usleepless at wrote:

As a previous poster has surmised your port 25 may be blocked. That is
not your only problem. Many many systems will (correctly) refuse port
25 SMTP sessions from end-user accounts, as those sessions are almost
always 100% spam.
The solution is to use a smarthost for your outbound mail. Using a
smart host via SMTP AUTH on ports 465 or 587 gets you around the port
25 blocks.
Gmail will allow SMTP AUTH connections, and will relay your mail for
you. Set your smart host to use STARTTLS to initiate the
SSL connection; use your Gmail username (including and your
Gmail password. 

You will have to read up on Sendmail and SSL, but basically you will
need entries similar to these in your file:

FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl
define(`CERT_DIR', `MAIL_SETTINGS_DIR`'certs')
define(`confCACERT_PATH', `CERT_DIR')
define(`confCACERT', `CERT_DIR/CAcert.pem')
define(`confSERVER_CERT', `CERT_DIR/mycert.pem')

I have had mixed luck using reaching systems which use
some rbls for spam blocking, as gmail gets listed often as a spam
However, there are some excellent third party systems out there
specifically designed to provide the very SMTP service you need. The one
I have direct experience with is You can set up your
sendmail to use them to relay for you. Their service is called MailHop
Relay and goes for
about $40/Year
Best Regards


\ /    ASCII Ribbon Campaign        -  Motor Vessel Tamara B
 X   against HTML email & vCards    -
/ \

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list