[hobbit] FROM Address in emails
Iain M Conochie
iain at shihad.org
Wed Jul 23 17:03:50 CEST 2008
Rafal Roginela wrote:
> Hi,
>
> Just using a fairly vanilla install of sendmail.
>
Erguh! But hey - if you have to :)
Here is what a quick google turned up
When sendmail dispatches your email, it places the servers hostname
behind your username, which becomes the "from address" in the email (ie.
user at galaxy.example.com). Normally we only want to use the domainname
and not the hostname, this setting allows all outgoing emails to be
"user at example.com", the preferred method.
define(`confDOMAIN_NAME', `example.com')dnl
FEATURE(`relay_entire_domain')dnl
Add this in your sendmail.mc (not the main config file)
Cheers
Iain
> Thank You
>
> Rafal Roginela
>
> Office (847) 827-9740 x109
> Fax (847) 493-8031
>
> This e-mail may contain confidential and/or privileged information. If
> you are not the intended recipient (or have received this e-mail in
> error) please notify the sender immediately and destroy this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.
>
>
> -----Original Message-----
> From: Iain M Conochie [mailto:iain at shihad.org]
> Sent: Wednesday, July 23, 2008 9:27 AM
> To: hobbit at hswn.dk
> Subject: Re: [hobbit] FROM Address in emails
>
> Rafal Roginela wrote:
>
>> Hi,
>>
>> Thank you, the problem being that I'm trying to change the domain name
>>
>
>
>> from hobbit at server.domain.com <mailto:hobbit at server.domain.com> to
>> hobbit at domain.com <mailto:hobbit at domain.com>. I apologize for not
>> being clear. Thank you for the help.
>>
>>
>
> What SMTP server software are you using? You will be able to configure
> this so that unqualified email addresses (e.g. ones coming from the box)
>
> will be sent from domain.com and not server.domain.com
>
> Cheers
>
> Iain
>
>
>> Thank You,
>>
>> **Rafal Roginela**
>>
>> Office (847) 827-9740 x109
>> Fax (847) 493-8031
>>
>> This e-mail may contain confidential and/or privileged information. If
>>
>
>
>> you are not the intended recipient (or have received this e-mail in
>> error) please notify the sender immediately and destroy this e-mail.
>> Any unauthorized copying, disclosure or distribution of the material
>> in this e-mail is strictly forbidden.
>>
>>
>>
> ------------------------------------------------------------------------
>
>> *From:* Ralph Mitchell [mailto:ralphmitchell at gmail.com]
>> *Sent:* Wednesday, July 23, 2008 9:19 AM
>> *To:* hobbit at hswn.dk
>> *Subject:* Re: [hobbit] FROM Address in emails
>>
>> On Wed, Jul 23, 2008 at 8:53 AM, Rafal Roginela
>> <Rafal.Roginela at americashloans.net
>> <mailto:Rafal.Roginela at americashloans.net>> wrote:
>>
>> Hi All,
>>
>> I'm sorry if I sound dumb but I just want to change the "from
>> address" or the "reply to" on the mails going out from my hobbit
>> server. I've searched through the mailing list and docs and can't
>> seem to see it (I'm sure it is simple). Please help.
>>
>>
>> That's probably going to take a change in /etc/passwd, if you just
>> want to change the userid.
>>
>> I just took a look at email I received from our Hobbit - MS Outlook
>> shows the "from address" as:
>>
>> Hobbit Monitor [hobbit at server.domain.com
>> <mailto:hobbit at server.domain.com>]
>>
>> The hobbit userid in /etc/passwd looks like this:
>>
>> hobbit:x:508:508:Hobbit Monitor:/home/hobbit:/bin/bash
>>
>> I know for a fact that's where the outgoing email picks up "Hobbit
>> Monitor", because that's nowhere else in the system, and if I change
>> that string new outgoing email picks it up. If I change the
>> /etc/passwd entry to read:
>>
>> norman:x:508:508:Norman the Foreman:/home/hobbit:/bin/bash
>>
>> I would expect hobbit email to come from
>>
>> "Norman the Foreman [norman at server.domain.com
>> <mailto:norman at server.domain.com>]"
>>
>> Alternatively you might be able to set up a script to talk directly to
>>
>
>
>> the SMTP server and convince it to use a spoofed address. That used to
>>
>
>
>> work, but email servers are smarter now...
>>
>> Ralph Mitchell
>>
>>
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
>
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
>
>
More information about the Xymon
mailing list