Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have been trying to set my Postfix mail server working like this below.
I want all emails sent out from my server exactly arriving at a specific address like test@domain.com.
How can I make this happen by setting Postfix mail server?
Please help me, thank you.
GREEN
Last edited by iamgreenlee; 10-27-2009 at 10:15 PM.
Try looking at your postfix documentation related to aliases.
Simply stated, you can direct any incoming mail using aliases, so yes, your a@domain3.com will be redirected to user test@domain.com. You must set up something like this in the flat file "aliases" (this varies between installations...check your local.cf for the correct alias file):
------- snip ---------
a: test
b: test
c: test
d: test
...etc.
------- /snip ---------
As you will see in aliases.gz, you must run postmap to map the aliases into aliases.db before going live.
You must already be consolidating and receiving mail for each of the subdomains listed; domain2.com, domain3.com, etc. so that these users will receive mail at domain.com. But that's a separate issue.
I have a group of users for whom I want all their mail to come to a single "student@my.domain". I set it up exactly as shown.
Try looking at your postfix documentation related to aliases.
Simply stated, you can direct any incoming mail using aliases, so yes, your a@domain3.com will be redirected to user test@domain.com. You must set up something like this in the flat file "aliases" (this varies between installations...check your local.cf for the correct alias file):
------- snip ---------
a: test
b: test
c: test
d: test
...etc.
------- /snip ---------
As you will see in aliases.gz, you must run postmap to map the aliases into aliases.db before going live.
You must already be consolidating and receiving mail for each of the subdomains listed; domain2.com, domain3.com, etc. so that these users will receive mail at domain.com. But that's a separate issue.
I have a group of users for whom I want all their mail to come to a single "student@my.domain". I set it up exactly as shown.
Thank you very much for your post.
Probably I did not explain my situation very clearly.
For example, from my server I send 2 emails to hello1@hotmail.com hello2@gmail.com
And here I want all my emails that I have sent arriving at a specific email address like "hello3@yahoo.com".
I want all emails from my server arriving at "hello3@yahoo.com"
There is nothing to do with user accounts in my server or my domain. My server does not need to receive emails, it only sends emails to other servers.
I know this is a really awkward question, but please help, I really need it.
Thank you.
Last edited by iamgreenlee; 10-28-2009 at 01:11 AM.
I want all emails from my server arriving at "hello3@yahoo.com"
Okay. So there's really nothing Postfix can do to help you. You can't really *ROUTE* email through different MTA's unless you control the transfer agents that you're hopping to.
Quote:
Originally Posted by iamgreenlee
My server does not need to receive emails, it only sends emails to other servers.
I know this is a really awkward question, but please help, I really need it.
Do you control "hello3@yahoo.com"? Are you sending unsolicited email to other users?
Okay. So there's really nothing Postfix can do to help you. You can't really *ROUTE* email through different MTA's unless you control the transfer agents that you're hopping to.
Do you control "hello3@yahoo.com"? Are you sending unsolicited email to other users?
The reason why I am trying to do this is that in my company we have a web system to test, but every developer has written their own email addresses to test while they were developing the system.
I want to receive all emails for test in a specific address while testing, even there is a different email address in every program.
Probably we are totally wrong with the way writing programs or even testing.
I thought there was something that I could do before the emails have been sent, something like rewriting "TO email address" in Postfix. I have been searching on line for a while, but I did not find any suitable solution to this issue.
I do control hello3@yahoo.com, all emails I want arriving at another server in my company, which means all email from server A replacing to hello3@yahoo.com to arrive at server B in my company.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.