[ILUG] sendmail, generics table, virtuser table, argh...
kevin lyda
kevin at suberic.net
Sat Jan 26 18:57:14 GMT 2002
ok, here's the deal. i bring this problem up now and again, but i'm
getting to the point where i'm seriously considering ditching sendmail
and putting in somethink like postfix (no, not qmail, sorry). however,
i'll give sendmail one more chance. perhaps you postfix users could tell
me how to do this in postfix - even a little link or email describing
how to migrate from sendmail to postfix might be useful to other folks
(and possibly me depending...).
one long paragraph down, and still no description. so, here goes.
i have a few email addresses that i get mail on. for the sake of example
i'll just refer to me at net for my non-local accounts, me at home-net for the
local address. eventually my home box will have a static ip and get mail
via smtp as god intended (pop, feh). mail addressed to me at net should
go to the user account kevin. since it will be done via forwarding,
that just falls into place.
next are mails *sent* from my home network. i want email from inle (my
home machine) to me at net to just route to the kevin account. now yes, i
could add the domains to the w class, but what if i send mail to bob at net?
so i looked at the generics table option. no. no matter how i wrote the
mc file it refused to enter the generics ruleset. virtusertable *does*
work, however it requires me to put my addresses domains into the VirtUser
class which is then put in the R class - hosts allowed to relay. no,
don't want to be a spam launching point for indigo.ie users, thanks.
what i haven't even tried to figure out is how to make it so that mail
originating from the mary account (or with mary at home-net in the to/cc/from
header) will get rewritten to mary at blah-net.
any ideas? my .mc files follow:
sendmail.mc:
include(`/usr/lib/sendmail-cf/m4/cf.m4')
define(`confDEF_USER_ID',``8:12'')
OSTYPE(`linux')
undefine(`UUCP_RELAY')
undefine(`BITNET_RELAY')
define(`confAUTO_REBUILD')
define(`confTO_CONNECT', `1m')
define(`confTRY_NULL_MX_LIST',true)
define(`confDONT_PROBE_INTERFACES',true)
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')
FEATURE(`smrsh',`/usr/sbin/smrsh')
FEATURE(`mailertable',`hash -o /etc/mail/mailertable')
VIRTUSER_DOMAIN_FILE(`/etc/mail/generics_domains')
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')
FEATURE(redirect)
FEATURE(always_add_domain)
FEATURE(use_cw_file)
FEATURE(local_procmail)
MASQUERADE_AS(`suberic.net')
FEATURE(`always_add_domain', `suberic.net')
FEATURE(`allmasquerade')
FEATURE(`masquerade_envelope')
GENERICS_DOMAIN_FILE(`/etc/mail/generics_domains')
FEATURE(`genericstable',`hash -o /etc/mail/genericstable')
FEATURE(`generics_entire_domain')
MAILER(smtp)
MAILER(procmail)
FEATURE(`access_db')
FEATURE(`blacklist_recipients')
dnl We strongly recommend to comment this one out if you want to protect
dnl yourself from spam. However, the laptop and users on computers that do
dnl not hav 24x7 DNS do need this.
FEATURE(`accept_unresolvable_domains')
dnl FEATURE(`relay_based_on_MX')
/etc/mail/virtusertable:
kevin at suberic.net kevin
/etc/mail/genericstable:
kevin at suberic.net kevin
/etc/mail/generics_domain
suberic.net
if anyone has ideas, thanks!
kevin
--
kevin at suberic.net buffy: come on, can't you put your foot down?!
fork()'ed on 37058400 giles: it *is* down.
meatspace place: orbit buffy: one of these days you're going to have to
http://suberic.net/~kevin get a grown up car. --inca mummy girl
More information about the ILUG
mailing list