Sendmail FC2

Paul Howarth paul at city-fan.org
Wed Nov 3 10:46:44 UTC 2004


Jonathan Allen wrote:
> Hi All,
> 
> I'm having difficulty setting up sendmail in an FC2 network.  The mail
> server is at 192.168.1.63 (on its LAN NIC) and all the other LAN machines
> are at 192.168.1.32-45.  All the LAN machines can open the sendmail port
> on the mail server at 192.168.1.63:25, either by name or IP address.
> However, outgoing mail is only accepted from one machine: 192.168.1.32
> All the other machines get 550 4.7.1 <email-address)... Relaying denied.
> 
> The same sendmail.mc and therefore sendmail.cf is being used on the
> mail server for the whole LAN, and does all the domain masquerading - so
> if it works for 192.168.1.32, why doesn't it work for 192.168.1.34 and
> the other LAN machines ?  All the LAN machines are declared in the
> /etc/hosts file on the mail server and the HELO and server response is
> always correctly identified.

You can enable relaying for 192.168.1.* by adding the following line to 
/etc/mail/access:

192.168.1	RELAY

If you want to restrict relaying to just 192.168.1.32-45 then you'll need to 
list each IP individually:

192.168.1.32	RELAY
192.168.1.33	RELAY
192.168.1.34	RELAY
..
192.168.1.45	RELAY

Then, in directory /etc/mail, run:

make

Your LAN clients should then be able to relay mail through your mail server.

Paul.




More information about the users mailing list