Relaying all mail to a particular relay

Relaying all mail to a particular relay

Post by rob » Fri, 23 Jan 2004 00:46:06


I have two servers A and B.

A is connected to the internet and can send mail out.
B is on an internal private network and doesnt have access to the
internet at all (even DNS).

I want email sent from B to be relayed through A.

On A I have changed the access file to <ip of B> RELAY done a make and
restarted sendmail.

On B I tried changing the DS line in like this:

DS [IP of A]

but that didnt achieve what I wanted, everything just sits in the
spool mail queue on A.

Can someone give me a hand on what I need to do to tell B to send all
mail via A?


Relaying all mail to a particular relay

Post by per » Fri, 23 Jan 2004 10:28:18

In article < XXXX@XXXXX.COM >
XXXX@XXXXX.COM (Rob Hulme) writes:

Don't edit directly, use a .mc file (see SMART_HOST in

First of all use 'mailq' to check *why* the messages are sitting in the
queue. But probably the problem is that you need to do a bit more to
make B not do *any* DNS lookups. See the FAQ (
about how to configure sendmail to not use DNS.

--Per Hedeland