On Fri, 7 Aug 2026 19:35:01 +0200
Jaroslaw Rafa via Postfix-users <[email protected]> wrote:

> Dnia  7.08.2026 o godz. 18:14:45 Joe via Postfix-users pisze:
> > Is there, by the way, a method of filtering in Postfix based
> > on the sending server name i.e. its PTR record?  
> 
> You can do this with smtpd_client_restrictions.
> 
> > I could do this in
> > exim4, but the filtering in Postfix seems based on the alleged
> > sender name taken from the headers.  
> 
> Postfix does not filter on headers. That's what milters can do.
> 
> smtpd_sender_restrictions filters on sender address taken from *SMTP
> transaction* (MAIL FROM: command), not from headers.
> 
> > I'd prefer to dispose of
> > xxx.goggleusercontent.com in one go, rather than a long list of CIDR
> > blocks.  
> 
> My table referenced in smtpd_client_restrictions contains
> 
> bc.googleusercontent.com      REJECT
> 
> and it works well for rejecting mail from all
> *.bc.googleusercontent.com clients.

Sorry it has taken so long, I've been away for a while.

Just done this now, no doubt I will soon find out if I got it right.

Further to the thread, I've had a rejection from Gmail stating I don't
have DNS authentication, and a quick look at mxtoolbox.com confirms
that my DNS host has lost my SPF record, even though my DNS control
panel shows the SPF record clearly. We'll see if fixing that that helps.

Thanks again,
Joe
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to