Date: Fri, 1 Jun 2001 07:40:16 +0300 (EEST) From: Giorgos Keramidas <keramidi@otenet.gr> To: Doug Poland <doug@polands.org> Cc: <freebsd-questions@FreeBSD.ORG> Subject: Re: sendmail domain re-writting Message-ID: <20010531220932.M1126-100000@hades.hell.gr> In-Reply-To: <20010531095722.A13118@polands.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 31 May 2001, Doug Poland wrote: > Sorry for *yet another sendmail* question. This should be > a simple solution.. > > I want sendmail on my 4.3-STABLE box to strip off the hostname > part of my email address. For example: > > doug@mybox.mydomain.com > > becomes > > doug@mydomain.com > > Given a stock sendmail.cf, how does one accomplish this? Yes, you can use FEATURE(genericstable) to do that. In my master-config file I have: FEATURE(`genericstable', `btree -o /etc/mail/genericstable')dnl GENERICS_DOMAIN(`hell.gr')dnl FEATURE(`generics_entire_domain')dnl Generated my sendmail.cf again and copied it to /etc/mail. Then, I added in my /etc/mail/genericstable file: charon@hades.hell.gr keramidi@otenet.gr Make the genericstable map the usual way: # cd /etc/mail # makemap btree genericstable < genericstable And all is set to go. What mail I sent from <charon@hades.hell.gr> will be rewritten to look as if it came from <keramidi@otenet.gr>. --giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010531220932.M1126-100000>