Afternoon,
You know the way in your sendmail.cf file, you will have something like...
DMsomedomain.tld
and if you wanted to do the same in qmail, you just do....
echo somedomain.tld > /var/qmail/control/defaulthost
Which is nice. But, in your sendmail.cf you also have.....
CE root
And if you want to the the same with qmail, you can add the following into
your ~root/.bashrc....
export MAILHOST=server.somedomain.tld
export QMAILINJECT=f
And that'll work nicely when your sending mail interactively as root, or
your have shell scripts running that pick up environmental variables. But,
it's kind of a yucky way of doing things, I would prefer not to have to
go mucking around editing my perl scripts that get run by crond just to
add those two environemental variables.
Is there any clean way of emulating "CE root" with qmail? So that any mail
from root is exposed without having environmental variables set?
Cheers,
Dave
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!