I used to have a CPanel/Plesk server so I didn't setup email via command line etc.
I don't want an email pop3 account or mail server. Just want to forward "firstname.lastname@example.org" to "email@example.com" - can I do this using nginx?
migrated from stackoverflow.com Nov 16 '11 at 13:55
This question came from our site for professional and enthusiast programmers.
There's a similar question here: nginx as mail proxy with a geeky answer but the very easy answer would be: no.
The thing is: while nginx does have a mail module and mail proxy features capable of handling smpt, imap, pop3 I'm having an hard time understanding which configuration does really require this. I'm not even sure it is compiled by default with pop/smpt/imap support, so you might have to rebuild it yourself. My point is not that you can't do it, just that it's overkill because there are easier ways.
This is a sample nginx conf (from here) for dealing with mail:
In each of the
But I suppose you have bought a domain name: most domain name registrar still propose some interfaces to simply redirect emails - that's definitely the easiest way. Set up a catch-all to go to your gmail address.
Otherwise: edit your domain DNS settings, get a google app account and follow their tutorial; it's free up to 10 accounts: http://www.google.com/apps/intl/en/group/index.html and very easy.
You will need to edit your DNS settings. Depending on where you registered your 'mysite.com' domain name mileage will vary.
Unluckily I can't provide you with specific links, but you should do the following:
from there, you will get very detailed instructions.
There are probably other hosted mail solutions, and I do not work at google, but you want to read mails in a gmail interface so this should be the easiest way. I have myself a free google app account myself and very happy with it;
|show 5 more comments|
As stated by Stefano, no.
If you want to forward firstname.lastname@example.org to email@example.com, then go to your site.com email provider and setup forwarding for the account.