Hi,
We are currently configuring a new sendmail server to act as a SMTP relay by a number of clients for a public email domain.
This relay server accepts mail for our domain mydomain.com from all external servers, via a rule in the access.db for the domain name which allows RELAY as long as the detination email address is *@mydomain.com.
Access:
mydomain.com RELAY
We then re-direct this mail with the mailertable to the actual mail server:
Mailertable:
mydomain.com esmtp:[host.mydomain.com]
this is working fine and all is happy with inbound mail.
However our problem arises in outbound mail from the same domain. Clients that use this domain need to be able to relay mail via this server if they come from a valid IP address listed in the access file AND also if their source email address is a
user@mydomain.com address. We can do it at present just on the host name or ip address however we cannot combine the 2 requirements.
Does anyone know how to do this with sendmail?
Regards
Dax