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.
Hello, suppose i have a socks 5 proxy address 82.159.36.14:3128. So what i want to do is that when i send a normal email from localdomain:25, postfix forward it the email to the proxy that complete the task. if i simply use for e.g:
proxychains telnet localdomain 25
... write my email
that won't work for my case!
I use ubuntu 12.04 with postfix. I also have searched a lot but i didn't manage to understand some tutorials.
This is easy if I understand you right. All you want to do is have postfix accept the mail on the local server but then relay that mail to a "smart host" for actual mail delivery right?
Hi, thank you for your answer but this is not what i am pleaning to do I want to route the email through a proxy server so that the originating ip of email header looks the one of the proxy and not the one of my dsl connection.
That is what you want, search the term "postfix relay host" or "email smart host" to get some more info. Postfix isn't going to actually deliver the mail but you need an MTA(Mail Transfer Agent) in order to get the email to where it needs to go, in this case the proxy server. It will just hand off all of the email generated on the local system to the proxy server where it will actually be delivered from. The IP of the proxy server will be the message headers.
All you have to do is set the relayhost directive in the postfix config file and it will relay your email. POSTFIX WILL NOT ACTUALLY DELIVER THE EMAIL! Remove the emailrelay binary and follow the steps I gave.
Edit your /etc/postfix/main.cf and find the line that has:
Code:
#relayhost = blahblah
Remove the # so it is not commented out and change the value, in this case "blahblah", to your email relay servers IP.
If this doesnt make sense ask some clarification questions, you are making this way harder on yourself.
I managed to replace that library with an alternative witch is tsocks, so /usr/local/lib/libsocks5_sh.so will become /usr/lib/libtsocks.so. But I don't know how to proceed for the rest! I don't understand how to deal with /usr/libexec/postfix because i don't have such directory.
Do you have the file /etc/postfix/main.cf? You dont need to mess with any of the libraries. Have you found the "relayhost" directive in the main.cf and changed it yet? That is all you have to do, then restart postfix and test it. The only other things that could be an issue would be smtp auth settings which I can tell you which directives to change based upon any error you get.
Just stick with what I have told you, nothing more.
Find the /etc/postfix/main.cf file, edit it and find the relayhost line. Change the directive to point to your servers IP such as:
even tried :
relayhost = smtp.live.com
relayhost = [smtp.live.com]
doesn't work also.
I doubt it will work for whatever any smtp server i give, not any server is relaying and i don't want to pay for paid one because i only need to send a couple of mails regulary about 75 messages to recipients per week. So the best i want to achieve is to use tor network and 127.0.0.1 with port 9050 so the message header ip will contain tor exit node ip and not my own to bypass geo ip filters.
My local server needs to send messages to users so i wouldn't like to miss someone. If you can clarify for me how to configure postfix with tor than you are welcome.
regards
You don't want relay mail to another server for delivery. You want emails to be delivered from your server but show as if they were delivered from another server? Is that correct?
If thats the case its spam and I will not help someone do that. You should have no problem relaying mail through your ISP, if they refuse to let you relay based upon the content or the number of emails you will have to pay for a service like the rest of the legitimate emailers out there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.