O'Reilly logo

Sendmail, 3rd Edition by Bryan Costales

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

F=2

Synopsis

When sendmail connects to a remote site, it looks for a literal ESMTP string anywhere in the initial acceptance message:

220 wash.dc.gov ESMTP CommuniGate Pro 3.5.9

If the accepting site says that it can accept extended SMTP by including the ESMTP string, the local sendmail will answer with EHLO instead of HELO.

If you want to limit a particular delivery agent to nonextended SMTP, no matter what the receiving site says, you can do so by defining this F=2 delivery agent flag:

MODIFY_MAILER_FLAGS(`SMTP', `+2')           this must be
MAILER(`smtp') before this

Here we add the F=2 delivery agent flag to the smtp class of delivery agents. As with all modifications of delivery agent flags, the modification must precede the MAILER declaration of the delivery agent.

This F=2 flag is most useful with broken MTAs and firewalls. When sendmail connects to such a broken site, that site will print ESMTP in its greeting message. But that ESMTP is incorrect, and when sendmail sends EHLO, the broken site will reject the salutation and drop the connection.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required