Koozali.org: home of the SME Server

outbound mail does not include hostname

simnux

outbound mail does not include hostname
« on: February 07, 2007, 06:37:20 PM »
SME 7.1 just downloaded and installed. Nice job, btw.

System is running server only mode, with email redirected to ISP for delivery. In this case, "ISP" means the email system of a large corporation.

Domain is configured as na.abc.com

Hostname is hobbit1

I am running hobbit monitor on this system, so hobbit is sending alerts via email using the "sendmail -t" method. This works fine. The messages have the general format:

Code: [Select]

From: monitor@hobbit1.na.abc.com
To: jones.bob@abc.com
Subject: [ALERT ID]

ALERT TEXT
ALERT TEXT
ALERT TEXT


The corporate email system expects all non-workstation senders to use the format:

account@hostname.subdomain.abc.com

This means, in my case, they expect to see email from "monitor@hobbit1.na.abc.com" or from "root@hobbit1.na.pg.com". Since the module that actually sends the hobbit alerts is running as a root cron task, the return path on the message is actually root@.

Here is where the problem occurs. As configured the return path actually gets set to <root@na.abc.com>, and indeed the qmail setup generally considers itself to be na.abc.com. This causes the rules on the corporate servers to reject the message as coming from an invalid host.

Is there a way to tweak a template to make the return path be root@hobbit1.na.abc.com? qmail is definitely not my area of expertise.

I'm going to test a brute force solution of changing the domain config to hobbit1.na.abc.com; however, just curious if there is a better way to do this.

Thanks

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
outbound mail does not include hostname
« Reply #1 on: February 07, 2007, 07:40:32 PM »
Changing the domain to hobbit1.na.abc.com is the quickest solution.
Just login trough SSH as admin/serverpass and change the settings there and you're set.
"It should just work" if it doesn't report it. Thanks!

simnux

outbound mail does not include hostname
« Reply #2 on: February 08, 2007, 12:55:39 AM »
Yeah, mangling the domain does it. As a WAR I guess that will do; however, I think for a server only solution that is delegating both DNS resolution and email delivery, it would be more proper for qmail to advertise itself using the fqdn. Off to the bug tracker I go :-)