1834437 Members
2175 Online
110067 Solutions
New Discussion

sendmail

 
K.C. Chan
Trusted Contributor

sendmail

All,
we've just acquired a new domain. But in-order to get it we promised to forward email for the recipient for 6 months. How do I forward email "joe@xyz.com" to "joe@newxyz.com"? Thanks.
Reputation of a thousand years can be determined by the conduct of an hour
3 REPLIES 3
Stuart Browne
Honored Contributor

Re: sendmail

Assuming you're 'xyz.com', and it's only one address, just use /etc/alaises, adding an entry:

joe: joe@newxyz.com

and run 'newalaises'.

If it's for the whole domain, you should probably use the /etc/mail/virtusertable with an entry like:

@xyz.com %1@newxyz.com

followed by re-making the hash database (usually just a 'make' in /etc/mail, but otherwise 'makemap hash virtusertable.db < virtusertable').

This will (of course) redirect all of your mail destined for 'xyz.com' as well, so, probably not what your'e after.
One long-haired git at your service...
Steven E. Protter
Exalted Contributor

Re: sendmail

I did exactly what you said above.

My problem is I want all users of xyz.com to resolve to invest@xyz.com on my server. Thus far, no joy. Any suggestions.
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Stuart Browne
Honored Contributor

Re: sendmail

virtusertable:

@xyz.com invest@xyz.com

*shrug* All mail destined for domain go to a single user.
One long-haired git at your service...