[Mimedefang] filter_sender, authenticated or smtp (port 25) Connections

Philip Prindeville philipp_subx at redfish-solutions.com
Sat Mar 3 14:47:42 EST 2012

You can!  Use $SendmailMacros{daemon_port}... also {auth_type}, {auth_authen}, {auth_author}


"New macros for SMTP AUTH are {auth_authen}, {auth_author}, and {auth_type}, which hold the client's authentication credentials (authid), the authorization identity (userid) (i.e., the AUTH= parameter of the MAIL command, if supplied), and the mechanism used for authentication. "

You can test the auth_type... that's probably easiest.

If this mailer is dedicated to local servers, though, I'd consider turning off outside access to the SMTP (25) port.

Also, are you sure you want to be using port 465 and not port 587?



On 2/17/12 10:57 PM, Jobst Schmalenbach wrote:
> Hi.
> I have a mailserver that staff on mobile devices can use for sending email on behalf of our domain.
> This is done using port 465, ssl and authentication.
> Is there any way that I can find out that people have connected to that port when sending emails in filter_sender or somewhere else in mimedefang where I can set a global variable so I can see that in filter_sender?
> Reason: I used to have this nice thing in filter_sender that did not allow people sending emails when the FROM address was from our domain, killing a fair amount of spam and viruses. Now when they connect using 465 and authentication I have no way finding out whether they come through 465 or 25, well at least to my current knowledge.
> Is there any way I can find out in mimedefang whether a connection is made as authenticated users or coming through the standard smtp (25) port??
> thank you for your help.
> jobst

More information about the MIMEDefang mailing list