Re: Need to change the source address in sendmail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



sorry me again.  I just found that david@xxxxxxx source address that I had successfully used was not taken from my postfix conf  as it was defined as cba.com in /etc/postfix/main.cf  but my sendmail.mf file is defined as MASQUERADE_AS(`abc.com').  I am getting confused again.  What is command to use sendmail to send mail and what is that for postfix?  When I type mail -s "subject" david@xxxxxxxxx < /file , I am using postfix or sendmail??  I thought the sendmail command is sendmail instead of mail  ??  

jim martin <postfix168@xxxxxxxxx> wrote:Well, I changed my sendmail.mf file's MASQUERADE_AS(`abc.com')dnl, abc.com is the source domain that I want to be. but it still shown as root@xxxxxxxxxxxxxxxxxxxxxx In fact, I did install postfix before and configured the /etc/postfix/main.cf 's myorigin=abc.com but it still shown as root@xxxxxxxxxxxxxxxxxxxxxx And my friend told me that it is because my postfix is taken over by sendmail. So I stop my sendmail.. and restart the postfix.. postfix start fine.. but I still cannot send mail via postfix as the source address that define in main.cf "myorigin=abc.com" when I am using root. 

what my friend told me was it is because, I am still using Sendmail, namely because sendmail(1) is the Sendmail MTA and not Postfix' sendmail binary. 

BUT I wonder what he said is true or not now. As later I tried to start both sendmail and postfix and using the postfix command (mail -s "subject" david@xxxxxxxxx < /file using other user account for example david instead of root. It does show the source address as david@xxxxxxxx But I wonder it doesn't apply to root. Anyone can tell me?? 

> Aug 4 00:57:42 watcher sendmail[21068]: i73Gvgrd021068: from=root, 
size=52, class=0, nrcpts=1, 
msgid=<200408031657.i73Gvgrd021068@xxxxxxxxxxxxxxxxxx>, relay=root@localhost




Stuart Sears wrote:
On Wed, 2004-08-04 at 17:45, Stuart Sears wrote:
> On Wed, 2004-08-04 at 17:36, jim martin wrote:
> > Hi.. i am using sendmail in Fedora Core1 to send email. And I found that my source email address is always root@xxxxxxxxxxxxxxxxxxxxxx mylinux is my hostname and mycompany is my company domain name. but how can change my source email address to root@xxxxxxx or myname@xxxxxxx?? where is the setting??? Is that in /etc/mail/sendmail.cf ? But I don't know where should I change.
> You can add somethinglike something like
> to one of the lines in sendmail.mc
> FEATURE (MASQUERADE AS `domain.com')
> I believe...
oops. Well it was _nearly_ in English...
> Why not just use postfix like sane people?
> myorigin = domain.com
> 
> :-)
> 
> Stuart
> > 
> > ---------------------------------
> > Do you Yahoo!?
> > New and Improved Yahoo! Mail - Send 10MB messages!
> 


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



---------------------------------
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

 
		
---------------------------------
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux