sendmail access file and milter-greylist

Hello,

I do not understand the co-operation between the sendmail access file and milter-greylist.
The documentation of the latter seems to indicate, that using milter-greylist makes sendmail completely ignore the access file, unless some mechanism for using whitelist settings from the access file are used via some config options.

Does that mean, that the e.g. REJECT or ERROR:"550 ..." in the access file are completely ignored when using milter-greylist, what my analysis of the behaviour seems to imply?

So can I use the access file REJECT and ERROR settings only use when I do not use milter-greylist at the same time?

Can someone enlighten me?
 
afaik and iirc access takes precedence over milter. ai bot says the same
i used it in the past but in the end have to give up because users expected email to work as and instant messenger.
+ annoyances from multiple sending ips of the same greyed mail like google msft sendgrid and many others
 
  • Thanks
Reactions: tsk
Hello,

I do not understand the co-operation between the sendmail access file and milter-greylist.
The documentation of the latter seems to indicate, that using milter-greylist makes sendmail completely ignore the access file, unless some mechanism for using whitelist settings from the access file are used via some config options.

Does that mean, that the e.g. REJECT or ERROR:"550 ..." in the access file are completely ignored when using milter-greylist, what my analysis of the behaviour seems to imply?

So can I use the access file REJECT and ERROR settings only use when I do not use milter-greylist at the same time?

Can someone enlighten me?
As far as I know sendmail still checks the access map itself, the milter doesn't turn that off. That bit in the milter-greylist docs is about whitelisting, an OK or RELAY in access won't skip greylisting. If REJECT seems ignored I'd check that access.db really got rebuilt with makemap, and with FEATURE(delay_checks) the reject only shows up at RCPT TO
 
  • Thanks
Reactions: tsk
I think you are right. Sendmail seem to honour both.
I was alittle bit confused after I edited our access file when I noticed that the access file can now be written using CIDR notation, although this is not mentioned in the documentation afaik...
 
  • /etc/mail/access is sendmail's primary control of whitelisting and blacklisting.
  • Think of access and greylisting as separate (but cooperating) parts of the decision chain.
  • Greylisting is a milter, which I believe is only run if access permits the message. IOW, if access REJECTs a message, the decision is made, milters will not even run.
  • Any "whitelist" in greylist.conf will only whitelist the greylisting for/of the current message -- specifically it does not override (cancel) any REJECT in the access file.
  • For example, if access ACCEPTs a message, it's independently up to greylist.conf to accept the message immediately, accept it only after greylisting delay, or it can blacklist the message (but I usually blacklist only in access).
  • If either access or greylist.conf blacklist a message, the message will be dropped.
Hope this helps..
 
Back
Top