List Info

Thread: mails VIA specific mailhost




mails VIA specific mailhost
user name
2006-02-27 13:19:11
*OS: RHEL 3.0*
*RUNLEVEL: 3 (command line)*

I have secure a system which has permissions to send mails
only through a
particular mail host, due to which mail command fails to
work.

I would like to know is there any command based tool that I
can use to send
logs of my monitoring scripts VIA a specified MailHost...I
see there is a
command where I can specify my default mail client, outgoin
server et...but
I don't know how to change these values....

Any ideas/pointers are appreciated..thanks even for giving a
try...


[rootdevel etc]# mailsettings
[Defaults]
Profile=Default
[PROFILE_Default]
EmailAddress=rootdevel
*EmailClient=/usr/bin/mutt*
FullName=root
IncomingServer=/var/mail/root
IncomingServerType=localbox
OutgoingCommand=/usr/sbin/sendmail
*OutgoingServerType=local*
TerminalClient=true
[rootdevel etc]#
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-requestredhat.com?subject=unsubscribe
h
ttps://www.redhat.com/mailman/listinfo/redhat-list
mails VIA specific mailhost
user name
2006-02-27 16:45:25
You need to (install,) update, & recompile your
sendmail.cf file.

First install/update it,
# Up2date sendmail-cf

Next, Add the following lines to /etc/mail/sendmail.mc:

define(`SMART_HOST',`mail.yourlocaldomain.local')
MASQUERADE_AS(`yourdomain.com')
FEATURE(masquerade_envelope)
FEATURE(masquerade_entire_domain)
MASQUERADE_DOMAIN(localhost)
MASQUERADE_DOMAIN(localhost.localdomain)
MASQUERADE_DOMAIN(yourdomain.com)
MASQUERADE_DOMAIN(yourlocaldomain.local)


Now commit the changes by running
# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

then restart sendmail like so:
# service sendmail restart

If it wasn't clear enough above, 
  "mail.yourlocaldomain.local" is the local
address of your mail server,
  "yourdomain.com" is the domain that the mail
should come from,
  "yourlocaldomain.local" is the suffix of your
local domain, for
completeness.
 
Regards,

Gavin McDonald
========================
EVI Logistic Enterprises
email: megavitron.com
phone: (604) 313-3845


> -----Original Message-----
> From: redhat-list-bouncesredhat.com
[mailto:redhat-list-
> bouncesredhat.com] On Behalf Of Opesh Alkara
> Sent: Monday, February 27, 2006 5:19 AM
> To: General Red Hat Linux discussion list
> Subject: mails VIA specific mailhost
> 
> *OS: RHEL 3.0*
> *RUNLEVEL: 3 (command line)*
> 
> I have secure a system which has permissions to send
mails only through a
> particular mail host, due to which mail command fails
to work.
> 
> I would like to know is there any command based tool
that I can use to
> send
> logs of my monitoring scripts VIA a specified
MailHost...I see there is a
> command where I can specify my default mail client,
outgoin server
> et...but
> I don't know how to change these values....
> 
> Any ideas/pointers are appreciated..thanks even for
giving a try...
> 
> 
> [rootdevel etc]# mailsettings
> [Defaults]
> Profile=Default
> [PROFILE_Default]
> EmailAddress=rootdevel
> *EmailClient=/usr/bin/mutt*
> FullName=root
> IncomingServer=/var/mail/root
> IncomingServerType=localbox
> OutgoingCommand=/usr/sbin/sendmail
> *OutgoingServerType=local*
> TerminalClient=true
> [rootdevel etc]#
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-requestredhat.com?subject=subscribe
> h
ttps://www.redhat.com/mailman/listinfo/redhat-list

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-requestredhat.com?subject=unsubscribe
h
ttps://www.redhat.com/mailman/listinfo/redhat-list
mails VIA specific mailhost
user name
2006-02-27 18:05:32
Thanks for the insight...
this was quite detailed.... ...

Opesh

On 2/27/06, Gavin McDonald <gavitrongmail.com> wrote:
>
> You need to (install,) update, & recompile your
sendmail.cf file.
>
> First install/update it,
> # Up2date sendmail-cf
>
> Next, Add the following lines to /etc/mail/sendmail.mc:
>
> define(`SMART_HOST',`mail.yourlocaldomain.local')
> MASQUERADE_AS(`yourdomain.com')
> FEATURE(masquerade_envelope)
> FEATURE(masquerade_entire_domain)
> MASQUERADE_DOMAIN(localhost)
> MASQUERADE_DOMAIN(localhost.localdomain)
> MASQUERADE_DOMAIN(yourdomain.com)
> MASQUERADE_DOMAIN(yourlocaldomain.local)
>
>
> Now commit the changes by running
> # m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
>
> then restart sendmail like so:
> # service sendmail restart
>
> If it wasn't clear enough above,
> "mail.yourlocaldomain.local" is the local
address of your mail server,
> "yourdomain.com" is the domain that the
mail should come from,
> "yourlocaldomain.local" is the suffix of
your local domain, for
> completeness.
>
> Regards,
>
> Gavin McDonald
> ========================
> EVI Logistic Enterprises
> email: megavitron.com
> phone: (604) 313-3845
>
>
> > -----Original Message-----
> > From: redhat-list-bouncesredhat.com
[mailto:redhat-list-
> > bouncesredhat.com] On Behalf Of Opesh Alkara
> > Sent: Monday, February 27, 2006 5:19 AM
> > To: General Red Hat Linux discussion list
> > Subject: mails VIA specific mailhost
> >
> > *OS: RHEL 3.0*
> > *RUNLEVEL: 3 (command line)*
> >
> > I have secure a system which has permissions to
send mails only through
> a
> > particular mail host, due to which mail command
fails to work.
> >
> > I would like to know is there any command based
tool that I can use to
> > send
> > logs of my monitoring scripts VIA a specified
MailHost...I see there is
> a
> > command where I can specify my default mail
client, outgoin server
> > et...but
> > I don't know how to change these values....
> >
> > Any ideas/pointers are appreciated..thanks even
for giving a try...
> >
> >
> > [rootdevel etc]# mailsettings
> > [Defaults]
> > Profile=Default
> > [PROFILE_Default]
> > EmailAddress=rootdevel
> > *EmailClient=/usr/bin/mutt*
> > FullName=root
> > IncomingServer=/var/mail/root
> > IncomingServerType=localbox
> > OutgoingCommand=/usr/sbin/sendmail
> > *OutgoingServerType=local*
> > TerminalClient=true
> > [rootdevel etc]#
> > --
> > redhat-list mailing list
> > unsubscribe mailto:redhat-list-requestredhat.com?subject=subscribe
> > h
ttps://www.redhat.com/mailman/listinfo/redhat-list
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-requestredhat.com?subject=unsubscribe
> h
ttps://www.redhat.com/mailman/listinfo/redhat-list
>



--
Regards
Opesh Alkara
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-requestredhat.com?subject=unsubscribe
h
ttps://www.redhat.com/mailman/listinfo/redhat-list
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )