Re: How to change the Mail From on Amanda.
2003-07-08 15:24:10
Elcio Mello wrote:
> I have had some problems with the mail server destination, it dont
> acept mail from a no qualified domain (Amanda use the local domain
> with its from). I would like to know how can I chage the completely
> mail from( user and domain) in amanda.
>
> -- Data -- SO: Conectiva Linux 8.2
This has nothing to do with amanda. You have to configure
your outgoing mail config on the host.
You could first try to give a decent name to your host, instead
of localhost.localdomain.
And make sure that name comes before (not after) "localhost" in
in the /etc/hosts file.
Test it with an ordinary mail program (mailx or Mail) used by
an ordinary user (not root), like:
echo Hello test 1 | mailx -s 'Test 1' someuser AT thedomain DOT com
If you are running sendmail, find the *.mc file that contains your
config for sendmail (maybe /etc/mail/sendmail.mc).
Add/change lines like:
MASQUERADE_AS(`conectiva.com.br')dnl
FEATURE(masquerade_envelope)dnl
MASQUERADE_DOMAIN(localhost)dnl
and run "m4 thefile.mc", which generates your sendmail.cf file.
Put it in place and restart sendmail.
If you don't have the sendmail configuration installed, you could
change the sendmail.cf by hand. This could be easy if the
masquerading config is compiled in and you only have to change
the M-macro:
DMconectiva.com.br
Configuring the same for postfix or exim is usually much easier,
but I have no experience there. RTFM here.
If this succeeds your outgoing mail will have addresses like
"amanda AT conectiva.com DOT br".
|
|
|