Sendmail trick: processing mail to virtusers

First, the configuration file should point to the virtual user database; to do this, include a line

FEATURE(‘virtusertable’,‘hash /etc/mail/virtusertable.db’)dnl

The virtual user database itself should be contained, in clear, in the file /etc/mail/virtusertable; each line should contain a virtual address ( and the translated address. The .db file is created with makemap hash virtusertable.db < virtusertable, but running make in the /etc/mail directory should be enough.

Second, the should contain the line


and the /etc/mail/local-host-names file should contain all the domains for which we are accepting mail.

Now run make in /etc/mail to transfer your changes to the configuration file, reload sendmail, and have fun.

Nov 11, 2003

virtusers (/linuxtricks)
2003-11-11, 20:39 [edit]

  Login:   Password:   [rss] [cc] [w3] [css]

© M. Vallisneri 2012 — last modified on 2010/01/29

Tantum in modicis, quantum in maximis