Re: [courier-users] SMTP relay from a given IP address and a given sender
Brought to you by:
mrsam
From: Olivier S. <ob...@fr...> - 2007-03-19 09:30:58
|
Sam Varshavchik wrote: > Olivier Sannier writes: > >> Hi all, >> >> I'd like to use courier as a SMTP relay in the following conditions : >> >> - the From header must be equal to a predefined value >> - the IP address of the connected server must be equal to a >> predefined value >> >> If those conditions are met, then the email is accepted and then >> relayed to whatever destination domain was specified in the email. >> Relaying should not be done for any other case. >> I'm quite sure this is possible with courier, but I couldn't manage >> to find this in the documentation nor through the webadmin CGI script. > > Courier does not support granting of relaying privileges based on the > contents of the From: header. And I do not know if any mail server > that does this. > > Absolute relaying privileges can be given to any range of IP > addresses. Also, relaying privileges are given after any successful > SMTP authentication. > > You probably want to use authenticated SMTP. Nothing needs to be > configured. Courier will give relaying privileges to anyone who > provides a valid userid and password. Ok, fair enough. What would be the best would be to have a specific user/password combination for this, and that this user cannot actually receive any email. Sending anything to him gets bounced back. Can using a virtual user without actually creating its directory work for this? Thanks for any help |