Sendmail help needed.
Sep. 30th, 2005 01:19 pmWe use Sendmail here. (This is not going to change.) We have an Exchange box, which I will call skank, which forwards mail to foolive. There is another box, footest, which is not in DNS, so skank has no idea it exists. I need to get foolive to relay mail for footest from skank so it can be processed on footest. Neither foolive nor footest run DNS; they both use /etc/hosts (skank is listed in both machines' hosts file). All these boxes are safely inside the chewy tasty centre of the network and don't need to know about the outside world.
I've tried much of the stuff in various FAQs ([1], [2]) and it doesn't want to work. You can connect to foolive (e.g. telnet port 25) and give it a message for footest, and it accepts it, but the message appears to vanish without trace.
What do I need to configure this to work? Answers involving new software are unlikely to be helpful — it's Sendmail 8.11.7p1+Sun, the stock version with Solaris 8.
Update: Duh. Mail for footest was actually going from foolive back to skank first, not directly. We had to put footest into skank's hosts file, whereupon it worked.
(no subject)
Date: 2005-09-30 12:48 pm (UTC)Off the top of my head, bung footest in foolive's /etc/mail/access table (and regenerate it). Since footest's not in DNS, you may well need an entry in the mailertable along the lines of:
footest esmtp:[ip.of.foo.test]
Or something a lot like that. footest may or may not need to be in foolive's sendmail.cw/local-host-names for it to accept mail for that box at all.
The disposition of the vanishing messages will be in the logs. He said, confidently.
(no subject)
Date: 2005-09-30 12:53 pm (UTC)(no subject)
Date: 2005-09-30 01:09 pm (UTC)You have a 'footest RELAY' entry in foolive:/etc/mail/access, yes? And indeed currant-bun sendmail is M4'ed up to use the access table?
(no subject)
Date: 2005-09-30 01:52 pm (UTC)On foolive, what happens when you do:
/usr/lib/sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> 3,0 root@footest
Hopefully it should end with something like
parse returns: $# esmtp $@ footest $: root < @ footest >
which will mean that the sendmail config knows it should try and send to footest via esmtp. If it doesn't then you may have other rules overriding it.
(Also, you did SIGHUP sendmail on foolive after making config changes; the daemon will otherwise use older rules)
(no subject)
Date: 2005-09-30 01:55 pm (UTC)i do hope they are paying you enough
(no subject)
Date: 2005-09-30 01:57 pm (UTC)Mail routing
Date: 2005-09-30 02:43 pm (UTC)Have you already configured routing of mail to foolive for anything addressed to footest?
On foolive, you need to make sure that it knows that footest exists and to forward mail to it. It looks like you can probably do this with the mailertable that I think someone already mentioned. To enable this make sure it's turned on in your m4 config file. See cf/README in the source distribution.
Stick footest in the /etc/hosts on foolive with it's short name and fully qualified name (assuming you have a domain)
192.168.0.56 footest footest.your.domain.com.
Set up a mailertable to forward anything for footest.(may need your domain here) to the footest name.
Cross your fingers and try it.
Craig
(no subject)
Date: 2005-09-30 04:59 pm (UTC)(no subject)
Date: 2005-09-30 11:09 pm (UTC)(no subject)
Date: 2005-09-30 11:23 pm (UTC)Then again, you did say you were trying to get a Sexchange server to do a thing. Never mind.
(no subject)
Date: 2005-10-01 02:30 am (UTC)