Postfix configuration (mail to root)
- From: Magnus Therning <magnus@xxxxxxxxxxxx>
- Date: Fri, 29 Sep 2006 15:23:25 +0100
I'm having problems with sending emails to root on my machines at work.
My mail setup is a little strange, I suppose, but not too weird, I think
:-)
I defer all sending of email. Postfix uses a relayhost of
localhost:2300 and my user has a cronjob that sets up an ssh tunnel to a
remote host, my.remote.host, that I use to actually send the email.
(This setup is to avoid the exchange mail server that is used at the
office. I've had A LOT of problems with it and its administrators.)
The current setup works fine for sending to external addresses, but not
for sending to local ones, e.g. to root.
% /usr/lib/sendmail root << EOF
Subject: hello
hello
EOF
% mailq
2B62F4B9DD 335 Fri Sep 29 15:07:41 magnus@xxxxxxxxxxxxxx
(deferred transport)
root@xxxxxxxxxxxxxx
This is how I've configured it:
% cat /etc/mailname
my.remote.host
% egrep '^root' /etc/aliases
root: magnus
% hostname -f
my.local.host
My /etc/postfix/main.cf contains the following:
myhostname = my.local.host
myorigin = /etc/mailname
mydestination = my.local.host, localhost
How do I configure this so that emails for root are sent to
magnus@xxxxxxxxxxxxx rather than root@xxxxxxxxxxxxxx?
And, why are mails sent by the user magnus recorded as sent from
magnus@xxxxxxxxxxxxxx?
/M
--
Magnus Therning (OpenPGP: 0xAB4DFBA4)
magnus@xxxxxxxxxxxx Jabber: magnus.therning@xxxxxxxxx
http://therning.org/magnus
Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.
Unreadable code,
Why would anyone use it?
Learn a better way.
-- Geoff Kuenning's contribution to the 2004 Perl Haiku Contest,
Haikus about Perl - 'Dishonerable Mention' winner
Attachment:
pgpfF7XYYMsqr.pgp
Description: PGP signature
- Follow-Ups:
- Re: Postfix configuration (mail to root)
- From: Magnus Therning
- Re: Postfix configuration (mail to root)
- Prev by Date: Re: bash scripting q
- Next by Date: Re: bash scripting q
- Previous by thread: Etch new install can´t see my serial mouse
- Next by thread: Re: Postfix configuration (mail to root)
- Index(es):
Relevant Pages
- Re: Marina Roos Re: sbs2000: problems with exchange
... You better setup DHCP on the SBS, it will push all the necessary settings to ...
your clients and it is a no-brainer. ... >> Emails are stored in the Exchange
server, on the server and that is what ... (microsoft.public.backoffice.smallbiz2000) - Re: Exchange: Routing of internal emails
... particular internal emails get sent outwards first? ... "Costas" wrote:
... and ask them to help you setup an A and an MX record that points to the IP ...
internal emails are ... (microsoft.public.windows.server.sbs) - File Permissions
... I'm new to linux and recently setup SuSE 9.0 with as a server on my home ...
The partitions created during setup are all owned by root and the group is ... To further
confuse me, in samba, I can connect to a shared partition (from ... (comp.os.linux) - Re: Periodic Emails are not coming
... My aliases file was setup properly, but I have discovered that it ...
wasn't compiled (I hadn't run "makealiases" for courier-mta). ... tried to send mail to
root, ... (freebsd-questions) - Re: Exchange not routing our domain emails to the internet
... I have just setup a small exhange server using SBS 2003. ... However
there are other offices which have emails addresses ... those addresses it seems that exchange
attempts to send it internally ... (microsoft.public.exchange.admin)