On Fri, Jul 17, 2009 at 09:00:45AM -0400, Stuart VanZee wrote:
> Ok, this is probably obvious but for some reason I am not coming
> up with an answer to this.  I have tried google and what man pages
> that I could think up to look at so if there is a man page with this
> info or a google search that provides an answer please point me in
> the right direction (because apparently I missed it).
> 
> Here is my problem.
> 
> Our main email server is hosted by another company.  This company
> also has a co-lo facility where we put our web servers etc.  Recently,
> they have switched to a new email system and now I am not receiving
> the daily emails (or insecure etc.) from our co-loed boxes.  Some
> digging found that this new mail system checks to see if the from
> address on an email is a valid email address, and it isn't.  For
> instance, the daily email from our "foo" server would come from:
> 
> [email protected]
> 
> The email server doesn't have an account for that email address so
> the email is rejected.  How would I go about telling each of our co-loed
> boxes to use a particular email address as the from address for
> stuff like daily email etc. so that it will look to the email server
> like it is coming from a valid email address and thus accept the email?
> 
> Or is there a better solution that I haven't come up with?

This depends on the MTA that handles the outgoing mail. OpenBSD's
default cron jobs appear to generate mail without a domain part (i.e.
from 'root' to 'root'). Postfix handles[1] such mails by appending
'@$myorigin', where $myorigin is a configuration parameter that defaults
to $myhostname, i.e. the hostname of the machine. It appears that you
could fix your issue merely by changing $myorigin. You may also want to
look at smtp_helo_name, the name used for HELO/EHLO commands by Postfix'
smtp client.

A quick peek at Sendmail docs seems to suggest that "masquerade" is the
Sendmail term for rewriting the From: address, so if you are using
OpenBSD's default MTA you can use that to look for more information. I'm
not sure how to change the name used for HELO/EHLO, but you didn't ask
about that. ;-)

                Joachim

[1] Provided append_at_myorigin is turned on, which is the default. The
manual warns not to turn it off, too.

Reply via email to