reddragdiva: (Default)
[personal profile] reddragdiva

We 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)
From: [identity profile] hirez.livejournal.com
Um.

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 01:09 pm (UTC)
From: [identity profile] hirez.livejournal.com
Hm. Well, why would one want to make things easy anyway?

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)
From: [identity profile] sweh.livejournal.com
(reposted, since LJ took some of the output to be commands!)

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)
bob: (Default)
From: [personal profile] bob
eww exchange and sendmail.
i do hope they are paying you enough

Mail routing

Date: 2005-09-30 02:43 pm (UTC)
From: (Anonymous)
Surely, the emails are being generated on skank (or coming into skank). When the mail arrives at skank, it needs to know how to get mail to footest.

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)
From: [identity profile] shamus9999.livejournal.com
Can you ping footest from skank's console?

(no subject)

Date: 2005-09-30 11:23 pm (UTC)
From: [identity profile] shamus9999.livejournal.com
Ah, you should have said that you were tatting lace while blindfolded, wearing boxing gloves, and hanging upside-down by one foot over shark-infested waters.

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)
ext_126642: (Default)
From: [identity profile] heliumbreath.livejournal.com
Condolences.

March 2022

S M T W T F S
  12 345
6789101112
13141516171819
20212223242526
2728293031  

Style Credit

Expand Cut Tags

No cut tags