[colug-432] sendmail using wrong domain

Scott Merrill skippy at skippy.net
Thu Feb 11 12:49:58 EST 2010


On Thu, Feb 11, 2010 at 12:42 PM, Richard Holbert <holbert.13 at osu.edu> wrote:
> Scott,
>
> For email delivery, I usually set up an email alias for root in
> /etc/aliases.
>
> man aliases

I have an entry in /etc/aliases for root, sending it to my email
address. That's not sufficient to solve this problem. Mail is being
sent to root at host.dept.ohio-state.edu, and failing:


The original message was received at Sat, 6 Feb 2010 08:18:56 -0500
from localhost
with id o16DIu2u013433

   ----- The following addresses had permanent fatal errors -----
<root at host.osu.edu>

   ----- Transcript of session follows -----
<root at host.osu.edu>... Deferred: Connection refused by host.dept.ohio-state.edu.
Message could not be delivered for 5 days
Message will be deleted from queue



> Also, I prefer postfix to sendmail.  Much easier to configure and maintain.

I generally prefer Postfix, too; but this is not a mail server. It's
just a server that needs to send its cron output to someone (me), so
installing Postfix seems a bit overkill.

Thanks,
Scott

> Scott Merrill wrote:
>>
>> Aloha.
>>
>> I have a Red Hat Enterprise Linux v5 system running as a virtual
>> machine inside an ESX 4 cluster. The system is resolvable at both
>> host.osu.edu and host.dept.ohio-state.edu. /etc/hosts defines
>> host.osu.edu as the public IP address, and there is no specific entry
>> for host.dept.ohio-state.edu.
>>
>> `hostname` returns host.osu.edu, and `dnsdomainname` returns osu.edu.
>>
>> When I send mail manually (`mail -s skippy at skippy.net test`), the
>> message is sent from user at host.dept.ohio-state.edu.
>>
>> cron mails are failing to be delivered, because Sendmail is trying to
>> send mail to root at host.dept.ohio-state.edu, but sendmail is not
>> listening on that interface: it's only listening on localhost.
>>
>> I tried adding host.dept.ohio-state.edu to /etc/hosts as 127.0.0.1,
>> but that didn't seem to work.
>>
>> Do I _have_ to edit /etc/mail/sendmail.mc to define a masquerade
>> entry? Or is there another way for me to tell this system that is
>> host.osu.edu, and should only ever use that address for sending mail?
>> I want all mail to be sent from -- and delivered too --
>> root at host.osu.edu. This machine only needs to send mail from cronjobs,
>> and will not be a publicly accessible mail server.
>>
>> Thanks,
>> Scott
>> _______________________________________________
>> colug-432 mailing list
>> colug-432 at colug.net
>> http://lists.colug.net/mailman/listinfo/colug-432
>>
>
>



More information about the colug-432 mailing list