FROM Address in emails
list Rafal Roginela
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. Thank you, Rafal Roginela Network Engineer AmeriCash Loans, LLC XXX Lee Street, Suite XXX Des Plaines, IL XXXXX Office (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX user-5b0d0daed758@xymon.invalid <mailto:user-5b0d0daed758@xymon.invalid> 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.
list Ralph Mitchell
On Wed, Jul 23, 2008 at 8:53 AM, Rafal Roginela <
▸
user-744e62462615@xymon.invalid> 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 [user-98253245d7e2@xymon.invalid]
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 [user-f804bca9f9c5@xymon.invalid]"
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
list Rafal Roginela
Hi, Thank you, the problem being that I'm trying to change the domain name from user-98253245d7e2@xymon.invalid to user-91cba7ca1144@xymon.invalid. I apologize for not being clear. Thank you for the help. Thank You, Rafal Roginela
▸
Office (XXX) XXX-XXXX x109
Fax (XXX) XXX-XXXX
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:user-00a5e44c48c0@xymon.invalid]
Sent: Wednesday, July 23, 2008 9:19 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] FROM Address in emails
On Wed, Jul 23, 2008 at 8:53 AM, Rafal Roginela
<user-744e62462615@xymon.invalid> 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 [user-98253245d7e2@xymon.invalid]
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 [user-f804bca9f9c5@xymon.invalid]"
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
list Iain M Conochie
Rafal Roginela wrote:
Hi, Thank you, the problem being that I’m trying to change the domain name from user-98253245d7e2@xymon.invalid <mailto:user-98253245d7e2@xymon.invalid> to user-91cba7ca1144@xymon.invalid <mailto:user-91cba7ca1144@xymon.invalid>. 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 (XXX) XXX-XXXX x109
Fax (XXX) XXX-XXXX
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:user-00a5e44c48c0@xymon.invalid]
*Sent:* Wednesday, July 23, 2008 9:19 AM
*To:* user-ae9b8668bcde@xymon.invalid
*Subject:* Re: [hobbit] FROM Address in emails
On Wed, Jul 23, 2008 at 8:53 AM, Rafal Roginela <user-744e62462615@xymon.invalid <mailto:user-744e62462615@xymon.invalid>> 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 [user-98253245d7e2@xymon.invalid <mailto:user-98253245d7e2@xymon.invalid>]
▸
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 [user-f804bca9f9c5@xymon.invalid <mailto:user-f804bca9f9c5@xymon.invalid>]"
▸
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
list Ralph Mitchell
On Wed, Jul 23, 2008 at 9:25 AM, Rafal Roginela <
▸
user-744e62462615@xymon.invalid> wrote:
Hi, Thank you, the problem being that I'm trying to change the domain name from user-98253245d7e2@xymon.invalid to user-91cba7ca1144@xymon.invalid. I apologize for not being clear. Thank you for the help.
You should take a look at the email configuration on your Hobbit server. "sendmail" used to have an option to rewrite outgoing headers to take off the server name. That may still be possible. Other email systems may also have that option, but I have no experience there. Haven't touched email configs for years... :) Ralph Mitchell
list Rafal Roginela
Hi, Just using a fairly vanilla install of sendmail.
▸
Thank You
Rafal Roginela
Office (XXX) XXX-XXXX x109
Fax (XXX) XXX-XXXX
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:user-c784e16a5170@xymon.invalid] Sent: Wednesday, July 23, 2008 9:27 AM
To: user-ae9b8668bcde@xymon.invalid
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 user-98253245d7e2@xymon.invalid <mailto:user-98253245d7e2@xymon.invalid> to user-91cba7ca1144@xymon.invalid <mailto:user-91cba7ca1144@xymon.invalid>. 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 (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX 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:user-00a5e44c48c0@xymon.invalid]
*Sent:* Wednesday, July 23, 2008 9:19 AM
*To:* user-ae9b8668bcde@xymon.invalid
*Subject:* Re: [hobbit] FROM Address in emails
On Wed, Jul 23, 2008 at 8:53 AM, Rafal Roginela <user-744e62462615@xymon.invalid <mailto:user-744e62462615@xymon.invalid>> 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 [user-98253245d7e2@xymon.invalid <mailto:user-98253245d7e2@xymon.invalid>]
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 [user-f804bca9f9c5@xymon.invalid <mailto:user-f804bca9f9c5@xymon.invalid>]"
Alternatively you might be able to set up a script to talk directly tothe SMTP server and convince it to use a spoofed address. That used to
work, but email servers are smarter now... Ralph Mitchell
list Martin Ward
If you just want someone else to get the replies you can simply put a different Reply-To SMTP header Depending on how your emails are generated this could be as simple as: echo "Reply-To: user-5b0d0daed758@xymon.invalid" |\/|artin
▸
-----Original Message-----
From: Rafal Roginela [mailto:user-744e62462615@xymon.invalid]
Sent: 23 July 2008 14:54
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] FROM Address in emails
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.
Thank you,
Rafal Roginela
Network Engineer
AmeriCash Loans, LLC
XXX Lee Street, Suite XXX
Des Plaines, IL XXXXX
Office (XXX) XXX-XXXX x109
Fax (XXX) XXX-XXXX
user-5b0d0daed758@xymon.invalid
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.
*************************************************************************************
The message is intended for the named addressee only and may not be disclosed to or used by anyone else, nor may it be copied in any way.
The contents of this message and its attachments are confidential and may also be subject to legal privilege. If you are not the named addressee and/or have received this message in error, please advise us by e-mailing user-61c7f445d564@xymon.invalid and delete the message and any attachments without retaining any copies.
Internet communications are not secure and COLT does not accept responsibility for this message, its contents nor responsibility for any viruses.
No contracts can be created or varied on behalf of COLT Telecommunications, its subsidiaries or affiliates ("COLT") and any other party by email Communications unless expressly agreed in writing with such other party.
Please note that incoming emails will be automatically scanned to eliminate potential viruses and unsolicited promotional emails. For more information refer to www.colt.net or contact us on +44(0)20 7390 3900.
list Iain M Conochie
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-e25cab9a6a00@xymon.invalid). Normally we only want to use the domainname and not the hostname, this setting allows all outgoing emails to be "user-2b21eb69126c@xymon.invalid", 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 (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX 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:user-c784e16a5170@xymon.invalid] Sent: Wednesday, July 23, 2008 9:27 AM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] FROM Address in emails Rafal Roginela wrote:Hi, Thank you, the problem being that I'm trying to change the domain namefrom user-98253245d7e2@xymon.invalid <mailto:user-98253245d7e2@xymon.invalid> to user-91cba7ca1144@xymon.invalid <mailto:user-91cba7ca1144@xymon.invalid>. 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 IainThank You, **Rafal Roginela** Office (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX This e-mail may contain confidential and/or privileged information. Ifyou 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:user-00a5e44c48c0@xymon.invalid] *Sent:* Wednesday, July 23, 2008 9:19 AM *To:* user-ae9b8668bcde@xymon.invalid *Subject:* Re: [hobbit] FROM Address in emails On Wed, Jul 23, 2008 at 8:53 AM, Rafal Roginela <user-744e62462615@xymon.invalid <mailto:user-744e62462615@xymon.invalid>> 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 [user-98253245d7e2@xymon.invalid <mailto:user-98253245d7e2@xymon.invalid>] 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 [user-f804bca9f9c5@xymon.invalid <mailto:user-f804bca9f9c5@xymon.invalid>]" Alternatively you might be able to set up a script to talk directly tothe SMTP server and convince it to use a spoofed address. That used towork, but email servers are smarter now... Ralph Mitchell
list Rafal Roginela
Hi, That was the trick!!! Thank You!!! Now to get the "acks" to work via e-mail.
▸
Thank You,
Rafal Roginela
Office (XXX) XXX-XXXX x109
Fax (XXX) XXX-XXXX
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:user-c784e16a5170@xymon.invalid] Sent: Wednesday, July 23, 2008 10:04 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] FROM Address in emails
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-e25cab9a6a00@xymon.invalid). Normally we only want to use the domainname and not the hostname, this setting allows all outgoing emails to be "user-2b21eb69126c@xymon.invalid", 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 (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX 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:user-c784e16a5170@xymon.invalid] Sent: Wednesday, July 23, 2008 9:27 AM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] FROM Address in emails Rafal Roginela wrote:Hi, Thank you, the problem being that I'm trying to change the domain namefrom user-98253245d7e2@xymon.invalid <mailto:user-98253245d7e2@xymon.invalid> to user-91cba7ca1144@xymon.invalid <mailto:user-91cba7ca1144@xymon.invalid>. 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 IainThank You, **Rafal Roginela** Office (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX 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:user-00a5e44c48c0@xymon.invalid] *Sent:* Wednesday, July 23, 2008 9:19 AM *To:* user-ae9b8668bcde@xymon.invalid *Subject:* Re: [hobbit] FROM Address in emails On Wed, Jul 23, 2008 at 8:53 AM, Rafal Roginela <user-744e62462615@xymon.invalid <mailto:user-744e62462615@xymon.invalid>> 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 [user-98253245d7e2@xymon.invalid <mailto:user-98253245d7e2@xymon.invalid>] 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 [user-f804bca9f9c5@xymon.invalid <mailto:user-f804bca9f9c5@xymon.invalid>]" Alternatively you might be able to set up a script to talk directly tothe SMTP server and convince it to use a spoofed address. That used towork, but email servers are smarter now... Ralph Mitchell
list Rafal Roginela
Hi all, Running into a wall with the mail acks. First, are the example scripts in the man pages for HOBBIT-MAILACK valid for sendmail? Second, my hobbit user does not have a user directory is there a way to force creation? Sorry I'm a linux newbie and I really appreciate the help.
▸
Thank you
Rafal Roginela
Office (XXX) XXX-XXXX x109
Fax (XXX) XXX-XXXX
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: Rafal Roginela [mailto:user-744e62462615@xymon.invalid] Sent: Wednesday, July 23, 2008 10:17 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] FROM Address in emails
Hi,
That was the trick!!! Thank You!!! Now to get the "acks" to work via
e-mail.
Thank You,
Rafal Roginela
Office (XXX) XXX-XXXX x109
Fax (XXX) XXX-XXXX
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:user-c784e16a5170@xymon.invalid] Sent: Wednesday, July 23, 2008 10:04 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] FROM Address in emails
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-e25cab9a6a00@xymon.invalid). Normally we only want to use the domainname and not the hostname, this setting allows all outgoing emails to be "user-2b21eb69126c@xymon.invalid", 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 (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX 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:user-c784e16a5170@xymon.invalid] Sent: Wednesday, July 23, 2008 9:27 AM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] FROM Address in emails Rafal Roginela wrote:Hi, Thank you, the problem being that I'm trying to change the domain namefrom user-98253245d7e2@xymon.invalid <mailto:user-98253245d7e2@xymon.invalid> to user-91cba7ca1144@xymon.invalid <mailto:user-91cba7ca1144@xymon.invalid>. 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 IainThank You, **Rafal Roginela** Office (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX 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:user-00a5e44c48c0@xymon.invalid] *Sent:* Wednesday, July 23, 2008 9:19 AM *To:* user-ae9b8668bcde@xymon.invalid *Subject:* Re: [hobbit] FROM Address in emails On Wed, Jul 23, 2008 at 8:53 AM, Rafal Roginela <user-744e62462615@xymon.invalid <mailto:user-744e62462615@xymon.invalid>> 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 [user-98253245d7e2@xymon.invalid <mailto:user-98253245d7e2@xymon.invalid>] 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 [user-f804bca9f9c5@xymon.invalid <mailto:user-f804bca9f9c5@xymon.invalid>]" Alternatively you might be able to set up a script to talk directly tothe SMTP server and convince it to use a spoofed address. That used towork, but email servers are smarter now... Ralph Mitchell
list Josh Luthman
Grep hobbituser /etc/passwd I dont believe a user can be used without a home dir. You can touch /var/mail/spool/hobbituser too I think.
▸
On 7/23/08, Rafal Roginela <user-744e62462615@xymon.invalid> wrote:Hi all, Running into a wall with the mail acks. First, are the example scripts in the man pages for HOBBIT-MAILACK valid for sendmail? Second, my hobbit user does not have a user directory is there a way to force creation? Sorry I'm a linux newbie and I really appreciate the help. Thank you Rafal Roginela Office (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX 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: Rafal Roginela [mailto:user-744e62462615@xymon.invalid] Sent: Wednesday, July 23, 2008 10:17 AM To: user-ae9b8668bcde@xymon.invalid Subject: RE: [hobbit] FROM Address in emails Hi, That was the trick!!! Thank You!!! Now to get the "acks" to work via e-mail. Thank You, Rafal Roginela Office (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX 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:user-c784e16a5170@xymon.invalid] Sent: Wednesday, July 23, 2008 10:04 AM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] FROM Address in emails 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-e25cab9a6a00@xymon.invalid). Normally we only want to use the domainname and not the hostname, this setting allows all outgoing emails to be "user-2b21eb69126c@xymon.invalid", 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 IainThank You Rafal Roginela Office (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX This e-mail may contain confidential and/or privileged information.Ifyou are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail.Anyunauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -----Original Message----- From: Iain M Conochie [mailto:user-c784e16a5170@xymon.invalid] Sent: Wednesday, July 23, 2008 9:27 AM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] FROM Address in emails Rafal Roginela wrote:Hi, Thank you, the problem being that I'm trying to change the domain namefrom user-98253245d7e2@xymon.invalid <mailto:user-98253245d7e2@xymon.invalid> to user-91cba7ca1144@xymon.invalid <mailto:user-91cba7ca1144@xymon.invalid>. I apologize for not being clear. Thank you for the help.What SMTP server software are you using? You will be able to configurethis so that unqualified email addresses (e.g. ones coming from the box) will be sent from domain.com and not server.domain.com Cheers IainThank You, **Rafal Roginela** Office (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX This e-mail may contain confidential and/or privileged information.Ifyou 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:user-00a5e44c48c0@xymon.invalid] *Sent:* Wednesday, July 23, 2008 9:19 AM *To:* user-ae9b8668bcde@xymon.invalid *Subject:* Re: [hobbit] FROM Address in emails On Wed, Jul 23, 2008 at 8:53 AM, Rafal Roginela <user-744e62462615@xymon.invalid <mailto:user-744e62462615@xymon.invalid>> 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 [user-98253245d7e2@xymon.invalid <mailto:user-98253245d7e2@xymon.invalid>] 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 [user-f804bca9f9c5@xymon.invalid <mailto:user-f804bca9f9c5@xymon.invalid>]" Alternatively you might be able to set up a script to talk directly tothe SMTP server and convince it to use a spoofed address. That used towork, but email servers are smarter now... Ralph Mitchell
--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
list Rafal Roginela
Hi, I'm running CentOs 5.1 fairly vanilla setup. I installed hobbit via RPM's. (just an FYI as background) when I run the Grep command I get: hobbit:x:104:104:Hobbit Daemon:/usr/libexec/hobbit:/bin/bash and there is an entry in /var/spool for my hobbit user. Now can I still use the scripts and where do I put them since I don't have a /home/hobbit directory?
▸
Thank You,
Rafal Roginela
Office (XXX) XXX-XXXX x109
Fax (XXX) XXX-XXXX
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: Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid]
Sent: Wednesday, July 23, 2008 10:59 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] FROM Address in emails
Grep hobbituser /etc/passwd
I dont believe a user can be used without a home dir. You can touch
/var/mail/spool/hobbituser too I think.
On 7/23/08, Rafal Roginela <user-744e62462615@xymon.invalid> wrote:Hi all, Running into a wall with the mail acks. First, are the example scripts in the man pages for HOBBIT-MAILACK valid for sendmail? Second, my hobbit user does not have a user directory is there a way to force creation? Sorry I'm a linux newbie and I really appreciate the help. Thank you Rafal Roginela Office (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX 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: Rafal Roginela [mailto:user-744e62462615@xymon.invalid] Sent: Wednesday, July 23, 2008 10:17 AM To: user-ae9b8668bcde@xymon.invalid Subject: RE: [hobbit] FROM Address in emails Hi, That was the trick!!! Thank You!!! Now to get the "acks" to work via e-mail. Thank You, Rafal Roginela Office (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX 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:user-c784e16a5170@xymon.invalid] Sent: Wednesday, July 23, 2008 10:04 AM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] FROM Address in emails 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-e25cab9a6a00@xymon.invalid). Normally we only want to use the domainname and not the hostname, this setting allows all outgoing emails to be "user-2b21eb69126c@xymon.invalid", 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 IainThank You Rafal Roginela Office (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX This e-mail may contain confidential and/or privileged information.Ifyou are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail.Anyunauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -----Original Message----- From: Iain M Conochie [mailto:user-c784e16a5170@xymon.invalid] Sent: Wednesday, July 23, 2008 9:27 AM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] FROM Address in emails Rafal Roginela wrote:Hi, Thank you, the problem being that I'm trying to change the domain namefrom user-98253245d7e2@xymon.invalid <mailto:user-98253245d7e2@xymon.invalid> to user-91cba7ca1144@xymon.invalid <mailto:user-91cba7ca1144@xymon.invalid>. I apologize for not being clear. Thank you for the help.What SMTP server software are you using? You will be able to configurethis so that unqualified email addresses (e.g. ones coming from the box) will be sent from domain.com and not server.domain.com Cheers IainThank You, **Rafal Roginela** Office (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX This e-mail may contain confidential and/or privileged information.Ifyou 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:user-00a5e44c48c0@xymon.invalid] *Sent:* Wednesday, July 23, 2008 9:19 AM *To:* user-ae9b8668bcde@xymon.invalid *Subject:* Re: [hobbit] FROM Address in emails On Wed, Jul 23, 2008 at 8:53 AM, Rafal Roginela <user-744e62462615@xymon.invalid <mailto:user-744e62462615@xymon.invalid>> 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 [user-98253245d7e2@xymon.invalid <mailto:user-98253245d7e2@xymon.invalid>] 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 [user-f804bca9f9c5@xymon.invalid <mailto:user-f804bca9f9c5@xymon.invalid>]" Alternatively you might be able to set up a script to talk directly tothe SMTP server and convince it to use a spoofed address. That used towork, but email servers are smarter now... Ralph Mitchell
-- Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
list Ralph Mitchell
Your Hobbit home directory is /usr/libexec/hobbit so substitute for /home/hobbit. Ralph Mitchell On Wed, Jul 23, 2008 at 11:08 AM, Rafal Roginela <
▸
user-744e62462615@xymon.invalid> wrote:
Hi, I'm running CentOs 5.1 fairly vanilla setup. I installed hobbit via RPM's. (just an FYI as background) when I run the Grep command I get: hobbit:x:104:104:Hobbit Daemon:/usr/libexec/hobbit:/bin/bash and there is an entry in /var/spool for my hobbit user. Now can I still use the scripts and where do I put them since I don't have a /home/hobbit directory? Thank You, Rafal Roginela Office (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX 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: Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid] Sent: Wednesday, July 23, 2008 10:59 AM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] FROM Address in emails Grep hobbituser /etc/passwd I dont believe a user can be used without a home dir. You can touch /var/mail/spool/hobbituser too I think. On 7/23/08, Rafal Roginela <user-744e62462615@xymon.invalid> wrote:Hi all, Running into a wall with the mail acks. First, are the example scripts in the man pages for HOBBIT-MAILACK valid for sendmail? Second, my hobbit user does not have a user directory is there a way to force creation? Sorry I'm a linux newbie and I really appreciate the help. Thank you Rafal Roginela Office (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX This e-mail may contain confidential and/or privileged information.Ifyou are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail.Anyunauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -----Original Message----- From: Rafal Roginela [mailto:user-744e62462615@xymon.invalid] Sent: Wednesday, July 23, 2008 10:17 AM To: user-ae9b8668bcde@xymon.invalid Subject: RE: [hobbit] FROM Address in emails Hi, That was the trick!!! Thank You!!! Now to get the "acks" to work via e-mail. Thank You, Rafal Roginela Office (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX This e-mail may contain confidential and/or privileged information.Ifyou are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail.Anyunauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -----Original Message----- From: Iain M Conochie [mailto:user-c784e16a5170@xymon.invalid] Sent: Wednesday, July 23, 2008 10:04 AM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] FROM Address in emails 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-e25cab9a6a00@xymon.invalid). Normally we only want to use the domainname and not the hostname, this setting allows all outgoing emails to be "user-2b21eb69126c@xymon.invalid", 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 IainThank You Rafal Roginela Office (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX This e-mail may contain confidential and/or privileged information.Ifyou are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail.Anyunauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -----Original Message----- From: Iain M Conochie [mailto:user-c784e16a5170@xymon.invalid] Sent: Wednesday, July 23, 2008 9:27 AM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] FROM Address in emails Rafal Roginela wrote:Hi, Thank you, the problem being that I'm trying to change the domain namefrom user-98253245d7e2@xymon.invalid <mailto:user-98253245d7e2@xymon.invalid> to user-91cba7ca1144@xymon.invalid <mailto:user-91cba7ca1144@xymon.invalid>. I apologize for not being clear. Thank you for the help.What SMTP server software are you using? You will be able to configurethis so that unqualified email addresses (e.g. ones coming from the box) will be sent from domain.com and not server.domain.com Cheers IainThank You, **Rafal Roginela** Office (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX This e-mail may contain confidential and/or privileged information.Ifyou 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:user-00a5e44c48c0@xymon.invalid] *Sent:* Wednesday, July 23, 2008 9:19 AM *To:* user-ae9b8668bcde@xymon.invalid *Subject:* Re: [hobbit] FROM Address in emails On Wed, Jul 23, 2008 at 8:53 AM, Rafal Roginela <user-744e62462615@xymon.invalid <mailto:user-744e62462615@xymon.invalid>> 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 [user-98253245d7e2@xymon.invalid <mailto:user-98253245d7e2@xymon.invalid>] 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 [user-f804bca9f9c5@xymon.invalid <mailto:user-f804bca9f9c5@xymon.invalid>]" Alternatively you might be able to set up a script to talk directly tothe SMTP server and convince it to use a spoofed address. That used towork, but email servers are smarter now... Ralph Mitchell-- Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
list Josh Luthman
/usr/libexec/hobbit is your user's home directory.
▸
On 7/23/08, Rafal Roginela <user-744e62462615@xymon.invalid> wrote:Hi, I'm running CentOs 5.1 fairly vanilla setup. I installed hobbit via RPM's. (just an FYI as background) when I run the Grep command I get: hobbit:x:104:104:Hobbit Daemon:/usr/libexec/hobbit:/bin/bash and there is an entry in /var/spool for my hobbit user. Now can I still use the scripts and where do I put them since I don't have a /home/hobbit directory? Thank You, Rafal Roginela Office (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX 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: Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid] Sent: Wednesday, July 23, 2008 10:59 AM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] FROM Address in emails Grep hobbituser /etc/passwd I dont believe a user can be used without a home dir. You can touch /var/mail/spool/hobbituser too I think. On 7/23/08, Rafal Roginela <user-744e62462615@xymon.invalid> wrote:Hi all, Running into a wall with the mail acks. First, are the example scripts in the man pages for HOBBIT-MAILACK valid for sendmail? Second, my hobbit user does not have a user directory is there a way to force creation? Sorry I'm a linux newbie and I really appreciate the help. Thank you Rafal Roginela Office (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX This e-mail may contain confidential and/or privileged information.Ifyou are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail.Anyunauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -----Original Message----- From: Rafal Roginela [mailto:user-744e62462615@xymon.invalid] Sent: Wednesday, July 23, 2008 10:17 AM To: user-ae9b8668bcde@xymon.invalid Subject: RE: [hobbit] FROM Address in emails Hi, That was the trick!!! Thank You!!! Now to get the "acks" to work via e-mail. Thank You, Rafal Roginela Office (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX This e-mail may contain confidential and/or privileged information.Ifyou are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail.Anyunauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -----Original Message----- From: Iain M Conochie [mailto:user-c784e16a5170@xymon.invalid] Sent: Wednesday, July 23, 2008 10:04 AM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] FROM Address in emails 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-e25cab9a6a00@xymon.invalid). Normally we only want to use the domainname and not the hostname, this setting allows all outgoing emails to be "user-2b21eb69126c@xymon.invalid", 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 IainThank You Rafal Roginela Office (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX This e-mail may contain confidential and/or privileged information.Ifyou are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail.Anyunauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -----Original Message----- From: Iain M Conochie [mailto:user-c784e16a5170@xymon.invalid] Sent: Wednesday, July 23, 2008 9:27 AM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] FROM Address in emails Rafal Roginela wrote:Hi, Thank you, the problem being that I'm trying to change the domain namefrom user-98253245d7e2@xymon.invalid <mailto:user-98253245d7e2@xymon.invalid> to user-91cba7ca1144@xymon.invalid <mailto:user-91cba7ca1144@xymon.invalid>. I apologize for not being clear. Thank you for the help.What SMTP server software are you using? You will be able to configurethis so that unqualified email addresses (e.g. ones coming from the box) will be sent from domain.com and not server.domain.com Cheers IainThank You, **Rafal Roginela** Office (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX This e-mail may contain confidential and/or privileged information.Ifyou 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:user-00a5e44c48c0@xymon.invalid] *Sent:* Wednesday, July 23, 2008 9:19 AM *To:* user-ae9b8668bcde@xymon.invalid *Subject:* Re: [hobbit] FROM Address in emails On Wed, Jul 23, 2008 at 8:53 AM, Rafal Roginela <user-744e62462615@xymon.invalid <mailto:user-744e62462615@xymon.invalid>> 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 [user-98253245d7e2@xymon.invalid <mailto:user-98253245d7e2@xymon.invalid>] 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 [user-f804bca9f9c5@xymon.invalid <mailto:user-f804bca9f9c5@xymon.invalid>]" Alternatively you might be able to set up a script to talk directly tothe SMTP server and convince it to use a spoofed address. That used towork, but email servers are smarter now... Ralph Mitchell-- Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
-- Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
list Rafal Roginela
Hi, Wooo Hooo!! That works awesome!!! Thank you all!!! I took the procmail script, copied and pasted into .procmail file in the home directory and that did the trick and all is well!! Thank you so much for all the help!!
▸
Rafal Roginela
Office (XXX) XXX-XXXX x109
Fax (XXX) XXX-XXXX
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: Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid]
Sent: Wednesday, July 23, 2008 11:23 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] FROM Address in emails
/usr/libexec/hobbit is your user's home directory.
On 7/23/08, Rafal Roginela <user-744e62462615@xymon.invalid> wrote:Hi, I'm running CentOs 5.1 fairly vanilla setup. I installed hobbit via RPM's. (just an FYI as background) when I run the Grep command I get: hobbit:x:104:104:Hobbit Daemon:/usr/libexec/hobbit:/bin/bash and there is an entry in /var/spool for my hobbit user. Now can I still use the scripts and where do I put them since I don't have a /home/hobbit directory? Thank You, Rafal Roginela Office (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX 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: Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid] Sent: Wednesday, July 23, 2008 10:59 AM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] FROM Address in emails Grep hobbituser /etc/passwd I dont believe a user can be used without a home dir. You can touch /var/mail/spool/hobbituser too I think. On 7/23/08, Rafal Roginela <user-744e62462615@xymon.invalid> wrote:Hi all, Running into a wall with the mail acks. First, are the example scripts in the man pages for HOBBIT-MAILACK valid for sendmail? Second, my hobbit user does not have a user directory is there a way to force creation? Sorry I'm a linux newbie and I really appreciate the help. Thank you Rafal Roginela Office (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX This e-mail may contain confidential and/or privileged information.Ifyou are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail.Anyunauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -----Original Message----- From: Rafal Roginela [mailto:user-744e62462615@xymon.invalid] Sent: Wednesday, July 23, 2008 10:17 AM To: user-ae9b8668bcde@xymon.invalid Subject: RE: [hobbit] FROM Address in emails Hi, That was the trick!!! Thank You!!! Now to get the "acks" to work via e-mail. Thank You, Rafal Roginela Office (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX This e-mail may contain confidential and/or privileged information.Ifyou are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail.Anyunauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -----Original Message----- From: Iain M Conochie [mailto:user-c784e16a5170@xymon.invalid] Sent: Wednesday, July 23, 2008 10:04 AM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] FROM Address in emails 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-e25cab9a6a00@xymon.invalid). Normally we only want to use the domainname and not the hostname, this setting allows all outgoing emails to be "user-2b21eb69126c@xymon.invalid", 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 IainThank You Rafal Roginela Office (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX This e-mail may contain confidential and/or privileged information.Ifyou are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail.Anyunauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -----Original Message----- From: Iain M Conochie [mailto:user-c784e16a5170@xymon.invalid] Sent: Wednesday, July 23, 2008 9:27 AM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] FROM Address in emails Rafal Roginela wrote:Hi, Thank you, the problem being that I'm trying to change the domain namefrom user-98253245d7e2@xymon.invalid <mailto:user-98253245d7e2@xymon.invalid> to user-91cba7ca1144@xymon.invalid <mailto:user-91cba7ca1144@xymon.invalid>. I apologize for not being clear. Thank you for the help.What SMTP server software are you using? You will be able to configurethis so that unqualified email addresses (e.g. ones coming from the box) will be sent from domain.com and not server.domain.com Cheers IainThank You, **Rafal Roginela** Office (XXX) XXX-XXXX x109 Fax (XXX) XXX-XXXX This e-mail may contain confidential and/or privileged information.Ifyou 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:user-00a5e44c48c0@xymon.invalid] *Sent:* Wednesday, July 23, 2008 9:19 AM *To:* user-ae9b8668bcde@xymon.invalid *Subject:* Re: [hobbit] FROM Address in emails On Wed, Jul 23, 2008 at 8:53 AM, Rafal Roginela <user-744e62462615@xymon.invalid <mailto:user-744e62462615@xymon.invalid>> 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 [user-98253245d7e2@xymon.invalid <mailto:user-98253245d7e2@xymon.invalid>] 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 [user-f804bca9f9c5@xymon.invalid <mailto:user-f804bca9f9c5@xymon.invalid>]" Alternatively you might be able to set up a script to talk directly tothe SMTP server and convince it to use a spoofed address. That used towork, but email servers are smarter now... Ralph Mitchell-- Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer
-- Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX Those who don't understand UNIX are condemned to reinvent it, poorly. --- Henry Spencer