postfix reject_sender_login_mismatch

Hi, I’m hoping someone can help me figure this out. I’ve been working on it for a few hours and haven’t had any luck.

I’ve had some problems lately with someone sending e-mail to my domain with a from address from my domain. I was thinking the best way to prevent outside spam from to would be to enable the reject_sender_login_mismatch option. I set smtpd_sender_login_maps = hash:/etc/postfix/virtual, but there is a minor problem with the virtual file. All the addresses ( are mapped to user names without the @ (, so every time I try to send mail, it says that is not owned by because it things is owned by

How can I fix this without having to completely re-install everything?

Thanks in advance,

Hi Jeff,

Try something like this: check_sender_access hash:/etc/postfix/access/sender_access
in your restrictions, listing your local domain[s] in the sender_access map:
my.domain REJECT

Make the check after your legitimate sender passes the that your domain users can email to each other.