First, the sendmail.mc 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 (user@site.com) 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 sendmail.mc should contain the line
FEATURE(use_cw_file)dnl
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 sendmail.mc
changes to the sendmail.cf configuration file, reload sendmail, and
have fun.
virtusers
(/linuxtricks)
2003-11-11, 20:39
[edit]
© M. Vallisneri 2012 — last modified on 2010/01/29
Tantum in modicis, quantum in maximis