Hi,
I'm fairly new to exim and was wondering if there could a be
another (better!) way of doing this.
Here's what I'm trying to achieve,
all users can receive mail from "internal domains"
some users can receive and send mail to "external domains"
I've take some tips from the FAQ about permitting only
certain users to send to external mail and came up with my own
for the receiving part.
Of course there are more external domains then internal ones ...
Thanks
#
# Directors
#
localuser:
driver = localuser
transport = local_delivery
condition =
"\${lookup{$sender_address_domain}lsearch{/exim/perm/domains}{yes}}"
localuser_from_external:
driver = localuser
transport = local_delivery
condition =
"\${lookup{$local_part}lsearch{/exim/permitted/receivers}{yes}}"
localuser_from_external_bounce:
driver = smartuser
transport = reject_remote_user
no_verify
unseen
#
# Routers
#
internal_delivery:
driver = domainlist
route_list = "*our_domain.com $domain bydns_mx;\
*our_friend.com $domain bydns_mx;\
transport = remote_smtp
external_delivery:
driver = domainlist
route_list = "* internet-gateway.com bydns_a"
transport = remote_smtp
require_files = /etc/exim/permitted/senders
senders = "^[^@]+@(?!${rxquote:our_domain.com}\\$):\
lsearch;/etc/exim/permitted/senders"
#
# Transports
#
reject_remote_user:
driver = autoreply
file = /etc/exim/err_messages/reject_remote_user.txt
file_expand
user = exim
group = exim
from = postmaster@${domain}
to = $sender_address
subject = "Re: Your mail to ${local_part}@${domain}"
--
+---------------------------------------------------------------------+
| Mailto:Mario.Dupuis@mfg.canadair.ca Phone : (514) 855-5001 #51720 |
| System Administrator/BAG Fax : (514) 855-2157 |
| Hiroshima 45 -- Chernobyl 86 -- Windows 95 |
+---------------------------------------------------------------------+
--
*** Exim information can be found at
http://www.exim.org/ ***