I have configured my main.cf into postfix, It is sending mail into my gmail account, It is sending mail from abcd@gmail.com, Now I want that the mail should be sent from xyza@gmail.com or acb@mydomain.com, I am stucking with this problem for more than one hour, but I am not getting the solution for this, Please help me out.
Thanks in advance
Edit:
I have configured it, but at gmail server, send
I have an Ec2 instance on amazon AWS. i have installed , dovecot,postfix on server, mail incoming mail server is IMAP mail.xxxx.com .
I am able to configure my mails with gmail, outlook etc, using the IMAP. and can send and receive emails, The problem is that i want to send emails through PHP code using my mail server.
Have 3 servers - web server, mail server and outbound-only email server. The outbound-only email server sends transaction based emails on behalf of the web server (password reset, contact us, etc.)
How should I set up the DNS to improve email deliverability for the outbound-only email server.
i know its duplicate question
I tried using this code.
I have two gmail accounts, and I want to configure my local postfix server as a client which does SASL authentication with smtp.gmail.com:587 with credentials that depend on the sender address.
So, let's say that my gmail accounts are: acc1@gmail.com and acc2@gmail.com.
I have server A with an IP address only and a dummy FQDN (on the basis all machines should have a FQDN): pants.net.invalid. All mail is relayed through another server elsewhere, which works fine.
On server A, Postfix rewrites the sender address with smtp_generic_maps = hash:/etc/postfix/generic.
I have a virtual server with a static IP and a real FQDN. I set up Postfix on it and everything works.
I have setup Postfix as part of my ISPConfig implementation. It should just forward all mail. Clients should be able to define a new alias and receive mail on a different e-mail address, using ISPConfig.
I have a problem with receiving mails. I do not know if my server or the server of the sender is wrong configured.
I have a domain daniel-marschall.de which has following DNS RR:
daniel-marschall.de. 86400 IN CNAME viathinksoft.com.
The domain viathinksoft.com has the MX RR to "mail.viathinksoft.com":
viathinksoft.com.