Tell me more ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I use a SOCKS proxy server to send mail using sendmail in Linux and mailx to send mails from the command line.

To make use of the SOCKS server, I am using tsocks to send mails using mailx, for example like this

tsocks mailx -s "Test mail" valid_mail_address@gmail.com

But the mails I send are not going through the proxy. I don't know what I do wrong.

Any help please.

share|improve this question
Could you paste the output of tsocks mailx -v -s "Test mail" valid_mail_address@gmail.com ? That would help understand what's going on. – Frederik Deweerdt May 10 '12 at 14:24

migrated from stackoverflow.com May 10 '12 at 10:39

1 Answer

I suspect mailx is configured to use sendmail so tsocks is redundant here. What happens if you omit it?

tsocks may actually be in the way - if you don't have a rule in /etc/tsocks.conf to bypass the proxy for the loopback interface it could send the message to the proxy when it shouldn't.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.