I tried with the following:
smtpd_relay_restrictions = reject_unlisted_sender, permit_mynetworks, 
reject_unauth_destination

But didnt work, mail from “unlisted” domains are accepted through. My domain is 
sebbe.eu

The result Im out after, is the following:

MAIL FROM: [email protected]
RCPT TO: [email protected]
Should be ACCEPTED. (since this is incoming mail that is not relayed)
This works today.

MAIL FROM: [email protected]
RCPT TO: [email protected]
should be REJECTED, even if the sender is inside “mynetworks” – since the 
sender are trying to send from a domain that are not belong to us (test.com), 
MAIL FROM should always end in @sebbe.eu when relaying.
This DOES NOT WORK, mail are accepted

MAIL FROM: [email protected]
RCPT TO: [email protected]
Should be accepted ONLY if sender is inside “mynetworks”. (since this is 
relayed mail)
This does work today.

MAIL FROM: [email protected]
RCPT TO: [email protected]
Should be accepted ONLY if sender is inside “mynetworks”, even tough this is 
not relayed mail, since the sender are then saying he belong to us.
This does NOT work today.

Reply via email to