LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Changing Sender Address in Postfix- (https://www.linuxquestions.org/questions/linux-newbie-8/changing-sender-address-in-postfix-4175472647/)

antnish 08-08-2013 10:26 AM

Changing Sender Address in Postfix-
 
Hi,

I would like to use Postfix as a mail client to send email in my CentOS 5.9. I configured 'main.cf' with the help of online-

The SMTP server is set up to relay only valid sender email address. I am trying to change sender address but everytime when I test to send an email, Email is sending with the default email address, i.e., root@FQDN.of.my.CentOS.Machine. I tried to change the default sender address as, antnish@mydomain.com-

Help!!

shm0 08-11-2013 04:24 AM

Try this trick.

colucix 08-13-2013 11:42 AM

Erroneusly posted as REPORT, copying it out:
Quote:

Originally Posted by antnish (Post 5005643)
Thanks for you reply.

After making changes acc. to the link you provide, I get error like-
[root@antnish ~]# postmap /etc/postfix/generic
postmap: warning: /etc/postfix/generic, line 241: expected format: key whitespace value

Still email is sending with the default address.



All times are GMT -5. The time now is 12:57 AM.