Re: mailx (how is it able to send email?!?)



On Sun, 24 Dec 2006 19:46:12 -0600, Bit Twister wrote:

Pretty sure as part of the mailx install, you were asked a few
questions for postfix setup. Most of your answers went into
/etc/postfix/main.cf setting up your Mail Transport Agent (MTA postfix)


For extra points: http://www.postfix.org

You may want to
# cd /etc/postfix
# grep root: aliases
and change the root: postfix
to root: beowulf

Save your change

# postalias aliases
# postfix stop
# /bin/cp /dev/null /var/log/mail/errors
# /bin/cp /dev/null /var/log/mail/info
# /bin/cp /dev/null /var/log/mail/warnings
# postfix start

# cat /var/log/mail/info
# cat /var/log/mail/warnings
# cat /var/log/mail/errors

Fix any errors/warnings.


Now any mail sent to root (alarms, cron msg, audit results,...)
will show up in beowulf's mail box.

Check it out, click up a terminal in beowulf login
$ mailx -s "test root aliases" root < /dev/null

$ mail
1
d
q


.



Relevant Pages

  • [SLE] Postfix Question (smtp)
    ... I have Postfix setup which allows me to send e- mails from company network. ... However, when I am abroad, I am unable to send any e-mails through our mail server because of denied relying, so usually I am use web mail or change smtp IP of Internet provider in certain area. ... The question is how to configure Postfix to allow to send e-mail through our domain from any location? ... I know its possible to setup Postfix smtp authentication with Cyrus, ...
    (SuSE)
  • Re: mailx (how is it able to send email?!?)
    ... # postfix start ... Hmmm, downloaded kubuntu, and installed it. ...
    (alt.os.linux)