I want to have some mail accounts on my domain (contact, webaster) redirected to my gmail account.
In order to do this I installed sendmail.
Default install (
apt-get install sendmail on ubuntu server 10.04) has local daemon, and only accepts delivery to local accounts.
To forward I activated virtusertable on sendmail.mc adding the line
FEATURE(virtusertable)dnl, edited the file /etc/mail/virtusertable and added the lines:
email@example.com firstname.lastname@example.org email@example.com firstname.lastname@example.org
finally, I did
m4 sendmail.mc > sendmail.cf and
make virtusertable.db, and edited the sendmail.cf to change the daemon listenting on my external ip's interface instead of 127.0.0.1.
As a result I can send email to, let's say email@example.com from any host and it gets to my server's root local mail account, but on the forwarded accounts (webmaster, contact) I don't get any delivery error message but neither any forwarded mail on my gmail account, or local mail on the server like it happens with firstname.lastname@example.org which is not forwarded using virtusertable.
I guess I would like to know what's happening (I don't even know where is the log file), and how to fix it. And also how can I change the daemon config on sendmail.mc to allow outside connections instead of just local ones without having to edit sendmail.cf file.