I am sure there is a sophisticated config way of doing it but I think
you can achieve what you want by adding server.domain in the access file
(/etc/mail/access). I am assuming you want absolutley no external mail
to the server domain:
E.g.
server.domain 550 Mail address does not exist
You would need to make sure you have the server domain name in the
local-host-names file of course (in the same dir). At the time of
writing I can't connect to my crib notes to check but worth a thought.
Regards
Chris
-----Original Message-----
From: owner-vps-mail@xxxxxxxxxxxx [mailto:owner-vps-mail@xxxxxxxxxxxx]
On Behalf Of Bruce Armstrong
Sent: 29 June 2004 20:47
To: vps-mail@xxxxxxxxxxxx
Subject: [vps-mail] allowing automatic email from server
Now that I have a VPS2 and can give out shell to people, I've noticed
that with my sendmail configuration, the automatic emails that are sent
to users (crontab, abnormally terminated vi sessions, etc) bounce. This
is entirely my fault since I added the following to
/etc/mail/virtusertable:
root@xxxxxxxxxxxxx me
@server.domain nobody
For all other users, I have associated them with the other domains I
control and mail flows normally.
The question:
How do I allow mail to the server's domain to go through to system
users only when it is generated on the server?
Possible methods I have thought of (but don't know how to implement at
the moment) are:
1. Modify the system to use different sendmail options when generating
email
2. Modify the system use different domains than the server's for
different users
3. Modify the sendmail configuration to do what I want
Any help would be appreciated
--Bruce
======================================================================
This is <vps-mail@xxxxxxxxxxxx> <http://www.perlcode.org/lists/>
Before posting a question, please search the archives (see above URL).
======================================================================
This is <vps-mail@xxxxxxxxxxxx> <http://www.perlcode.org/lists/>
Before posting a question, please search the archives (see above URL).