Why is PostFix sending mail using the email address of the smtp account?
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Why is PostFix sending mail using the email address of the smtp account?
Hello,
I finally got PostFix up and running using gmails smtp server on port 587 using ssl.
Some of my tools that send me reports seem to be able to change the FROM: address to indicate where the message is coming from but for some reason if I try to send an email from one of the linux accounts directly to an external recipient it litteraly sends the message using accountname@gmail.com instead of linuxaccountname@mydomain.com.
There's your answer then - the problem isn't postfix, it's your MUA.
Postfix will add $myorigin to an unqualified address it processes. If the address is already fully-qualified, it will leave it alone - which is what is happening here.
Now the question is, if the address is already fully-qualified by the time it gets to postfix, where is the address being generated?
MUA (mutt, pine, etc) --> Postfix --> Internet SMTP Server
and i received the message from root(me@gmail.com). It changed the name of the sender but not the email address it came from. So that sorta worked but not 100%
So I am having the same problem, I did the sendmail -f sender reciever@somewhere.com and when i got my email it was from sender@localhost.localdomain I can't seem to fix this I would appreciate any and all help. Thanks
got my email it was from sender@localhost.localdomain I can't seem to fix this I would appreciate any and all help. Thanks
Although I'm not so sure if this could be your issue, I'm still suggesting for to check the following below to make sure that they are setup harmoniously. Here it is assumed that your domain is "example.com" and your host is "mail.example.com".
/etc/hosts:
Besides the default localhost, you should also have your host.
Code:
192.168.0.x mail.example.com mail
/etc/hostname or /etc/HOSTNAME:
Code:
mail.example.com
Make sure in you /etc/resolv.conf it has an entry -> "lookup file bind".
Alright, well, I've tried everything suggested here as well and it doesn't seem to want to work. I know it has got to be something wrong with the configuration. I'm using Fedora Core 5 at this point.
Below is a small snipit from the configuration file of a tool called DenyHosts. This configuration is to pre-define the SMTP parameters for this tool so that when someone gets blocked from my box it will send me an email indicating who was blocked.
When I receive this message in my email it is indeed coming from "DenyHosts <denyhosts@subdomain.domain.net>".
I'm using a subdomain because it is a free domain, hehe, but it works none the less.
I do not know how the binary file is actually executing the sending of this email but I know for a fact that it is using the gmail smtp server because when I log into GMAIL I see a copy of every last one of the emails that this tool sent me in the Inbox as a new message for some reason.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.