This may sound like a silly question, but does anyone know how to get the correct mail relay IP when using domain routing/mailertables in Sendmail to forward all traffic for a domain to Postfix, which is on another machine inside the LAN?
From the Postfix Mail Log, here’s an example:
May 19 17:04:21 mail postfix/smtpd: connect from unknown[192.168.1.200]
May 19 17:04:21 mail postfix/smtpd: 806E32E600: client=unknown[192.168.1.200]
May 19 17:04:21 mail postfix/cleanup: 806E32E600: message-id=<email@example.com>
May 19 17:04:21 mail postfix/nqmgr: 806E32E600: from=<firstname.lastname@example.org>, size=972, nrcpt=1 (queue active)
May 19 17:04:21 mail postfix/smtpd: disconnect from unknown[192.168.1.200]
May 19 17:04:22 mail postfix/smtp: 806E32E600: to=<email@example.com>, relay=192.168.1.202[192.168.1.202], delay=1, status=sent (250 Ok: queued as D7EA45A069)
Here’s the same message, “before” it was routed through Postfix:
May 19 17:41:33 mirage sendmail: i4JLfT001629: from=<firstname.lastname@example.org>, size=535, class=0, nrcpts=1, msgid=<email@example.com>, bodytype=8BITMIME, proto=SMTP, daemon=MTA, relay=web41205.mail.yahoo.com [126.96.36.199]
May 19 17:41:34 mirage sendmail: i4JLfT001629: to=<firstname.lastname@example.org>, delay=00:00:01, xdelay=00:00:01, mailer=smtp, pri=30535, relay=[192.168.1.201] [192.168.1.201], dsn=2.0.0, stat=Sent (Ok: queued as 3EF502E600)
See what I mean? “relay=web41205.mail.yahoo.com [188.8.131.52]” is present in the Sendmail log, but is stripped and replaced with my server IP when it’s routed through Postfix.
Why is this a bad thing? It’s not the end of the world, however I’m testing Postfix on a test machine inside my Lan. Without the correct “originating” IP information, this renders Postfixe’s many Spam prevention features pretty much useless, and because all it sees is 192.168.1.200 or 192.168.1.201. In fact, it makes testing UCE features almost impossible, as these features rely on the originating IP information.
Maybe this is an inherent, and unavoidable side effect when routing through another host perhaps? I don’t know, but I’ve tried everything, and I can’t get that dam originating IP information to show up in the Postfix logs. Is this even possible, or am I wasting my time here?
Would really appriciated some help people