I just want to know if it is really possible:
My network provider give me one mail box and allow me to define 3 aliases to this mail box. For instance, the email account is info@mydomain.com, I can have three aliases (staff1@mydomain.com, staff2@mydomain.com, staff3@mydomain.com) to the same mail box. As a result, when I login to the smtp.mydomain.com with "info", I can get all message from these four email addresses.
Question: Can I use fetchmail and sendmail to download all messages to my local mail system, and let four users to get their messages from this mail box individually? User should login local mail server as info, staff1, staff2, staff3.
(Is it called masquerading from the sendmail handbook?)
I would be very happy to give more point for someone give me more tips to do this. Thank you very much.
Also as for point 4 of no relaying you can solve that using the relay-domains file to allow your local network or your domain to relay through your mail server.
I will give you an example of how what I said works if it applies to you then take it up
I have a client with his domain as client.domain.name his mx records point to my.server.name and I have an account on my box called client into which I direct all this mail.
So he gives people e-mail accounts at client.domain.name say user1@client.domain.name user2@client.domain.name etc and all this goes to that one mail box called client on my box then he he has a .fetchmailrc file which he runs as root that reads
poll myserver protocol pop3 nodns
localdomains client.domain.name host.client.domain.name
user username pass passwd to
root
*
here
and his sendmail.cf has a line specifying that client.domain.name is a local domain i.e
Cwclient.domain.name
Cwlocalhost
when he runs fetchmail -va the mail is delivered to user1 user2 etc's mail boxes also there should be an entry in etc/hosts for client.domain.name.If this is the kind of setup you have then it should work if you set it up this way.