Richard A Nelson <[EMAIL PROTECTED]> writes: > On Fri, 30 Sep 2005, Philip J. Clark wrote: > >> When doing a fresh install of sendmail, I need to always do >> /etc/init.d/sendmail reload after a reboot to get the mailer to >> work properly, otherwise mail appears to come from localhost.localdomain >> and gets bounced. > > So, what changes between the time that sendmail comes up at boot and > your restart of it that somehow changes the hostname ? > > It sounds like you need to add something like this to /etc/mail/sendmail.mc: > define(`confDOMAIN_NAME', `<your_desired_hostname_here>')dnl > > You've told sendmail that it is to only listen to 127.0.0.1, and > apparently have not altered /etc/hosts to provide other than > localhost.localdomain for a name. > > You may also be better served by simply masquerading as your ISP - > assuming your username matches. > >> sendmail.conf: >> DAEMON_NETMODE="Static"; >> DAEMON_NETIF="lo"; >> DAEMON_MODE="Daemon"; > >> sendmail.mc: >> DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl >> DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, >> Addr=127.0.0.1')dnl >> define(`confPRIVACY_FLAGS',dnl
Hi Richard, sorry about the delay in getting back to you. I am using a laptop so my ISP changes all the time. I have in my hosts file: 127.0.0.1 localhost.localdomain localhost hostname Where hostname is just a name for my laptop. Ideally, I want to masquerade as my work username and domain so that any mail coming back always goes there. In a nutshell I need only outgoing mail and wanted to just send directly from sendmail to save changing smtp host every time I am on a new network. Thanks for any help/advice. I am using sendmail and everything straight out of the box. -Phil -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]