Hi, I’m trying to setup an internal postfix mail server for a very specific use for a client. They need to REJECT all mail that is attempted to be sent with a MAIL FROM: value of anything other than an address at “good-domain.com” (for this example). If someone was to MAIL FORM: ad...@google.com for example, it should be rejected.
I thought I could do this in a sender access file within smtpd_sender_restrictions, but I’m not having much luck. File: /etc/postfix/main.cf smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/insiders File: :/etc/postfix/insiders *@good-domain.com OK *@*.* REJECT However when I telnet to the SMTP service, I can MAIL FROM: andy address/domain I want and postfix proceeds. Can anyone suggest where I’m going wrong?? Best Regards, Dave Byrne Head of Technical Projects Office: 01622 524 200 Vinters Business Park | New Cut Road | Maidstone | Kent | ME14 5NZ VooServers Ltd registered in England and Wales No. 05598156 This communication and any attachments contain information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of disclosure, distribution, copying or use of this communication or the information in it or in any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please return it with the title 'received in error' to david.by...@vooservers.com then delete the email and destroy any copies of it. Email communications cannot be guaranteed to be secure or error free, as information could be intercepted, corrupted, amended, lost, destroyed, arrive late or incomplete, or contain viruses. We do not accept liability for any such matters or their consequences. Anyone who communicates with us by email is taken to accept the risks in doing so. Opinions, conclusions and other information in this email and any attachments which do not relate to VooServers are neither given nor endorsed by it.