Date: Tue, 1 Aug 1995 13:36:57 +0200 From: Lars koeller <uphya001@odie.physik2.uni-rostock.de> To: freebsd-questions@freefall.cdrom.com Subject: How to configure sendmail user-database? Message-ID: <199508011136.NAA10976@odie.physik2.uni-rostock.de>
next in thread | raw e-mail | index | archive | help
Hello! I try to use the user-database feature of sendmail to map my FROM lines to Full.Name@host. But the method described in the sendmail FAQ section How do I rewrite my From: lines to read ``First_Last@My.Domain''? There are a couple of ways of doing this. This describes using the "user database" code. This is still experimental, and was intended for a different purpose -- however, it does work with a bit of care. It does require that you have the Berkeley "db" package installed (it won't work with DBM). First, create your input file. This should have lines like: loginname:mailname First_Last First_Last:maildrop loginname Install it in (say) /etc/userdb. Create the database: makemap btree /etc/userdb.db < /etc/userdb You can then create a config file that uses this. You will have to include the following in your .mc file: define(confUSERDB_SPEC, /etc/userdb.db) FEATURE(notsticky) but it didn't work. What *.mc file is used by the FreeBSD-2.0.5R sendmail? It's not freefall.mc i think. I also try to solve the problem using the installed sendmail: 'sendmail -bd -q30m -oU /etc/userdb.db' but without success and I think it's not possible with only the alias mechanism. But again in detail: In the moment I have an alias of the following form lars.koeller: uphya001 so mail send to lars.koeller arrive uphya001 which is my login name. How can I achieve that the outgoing mail also contain lars.koeller@host so that a reply goes to lars.koeller and not to uphya001? I think this is exactly the problem the user-database should solve! Who can help or has solved this problem? Thanks in advance Lars -- ______________________________________________________________________________ Lars Köller E-Mail: University of Rostock (Germany) lars.koeller@odie.physik2.Uni-Rostock.DE Fachbereich Physik Universitätsplatz 3 Phone: +49 381/498-1665 or 498-1648 18051 Rostock Fax: +49 381/498-1667
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199508011136.NAA10976>