Ooops, I think there is more confusion in this thread than necessary; hope I don't make a typo right now as I won't test it right now, but the full logic to do what all of you want is:
Code: Select all
AUTH_SUCCESS Accept ALL
AUTH_MISMATCH Log_Reject ALL
RELAY Accept swaserver.company.com
RELAY Log_Reject ALL
Believe the first line is actually implicit, but I've added it for clarity.
- if someone SMTP authenticates successfully, he'll be able to relay
- if the MAIL FROM: SMTP envelope does not match any of the authenticated users Internet addresses, the attempt to relay is prohibited
- SMTP connections coming from the SWA server (could be the same machine as the scalix server) are allowed to relay without authentication. This is necessary to make SWA work.
- all other attempts to relay are rejected.
I'm using Apple Mail against a scalix server run by us from external with SMTP authentication setup allright and I'm able to send to anyone from a non-trusted network. Still, noone is (hopefully.... .-) ) able to open-relay through our systems.
Cheers,
Florian.