haraka / Haraka

A fast, highly extensible, and event driven SMTP server
https://haraka.github.io
MIT License
5.09k stars 661 forks source link

SMTP Authentication on smtp_forward and smtp_proxy not working #871

Closed salvop closed 9 years ago

salvop commented 9 years ago

SMTP authentication on smtp_forward and smtp_proxy is not working, smtp queue are always started without issuing authentication to relay provider. Also documentation is lacking on this.

Module is almost useless without authentication to relay.

smfreegard commented 9 years ago

Ok - I've just read the code and yes, the docs haven't kept up with the features added and the multi-domain configuration that was added has really confused how the authentication works. Can you confirm that the following in smtp_forward.ini or smtp_proxy.ini works for you.

host=1.2.3.4

[auth]
type=plain
user=auth_username
pass=auth_password

and can you also try this:

host=1.2.3.4
auth.type=plain
auth.user=auth_username
auth.pass=auth_password

Let me know and I'll document it.

smfreegard commented 9 years ago

Actually - I think the latter example won't work at all, but if you can confirm that please.

salvop commented 9 years ago

I tried and in both cases auth data are not passed to smtp client. below you can see output from console:

[INFO] [queue/smtp_forward] forwarding to smtp.sendgrid.net:587

Any workaround???

smfreegard commented 9 years ago

Can you gist your smtp_forward.ini file please?

salvop commented 9 years ago

host=smtp.sendgrid.net port=587 [auth] type=plain user=user pass=pass

duanefields commented 9 years ago

Hmm, this wasn't working for me, so either I'm missing something or it wasn't working - for the moment I've patched this in my branch, https://github.com/glg/Haraka, but I probably don't know enough to do this "correctly"... anyway, it case it's useful to someone...

vivek779 commented 8 years ago

Hi i was working on smtp_proxy plugin it works fine but i am not able to figure out how to set two or more server for sending proxy .Suppose i have 3 server A,B,C i want to send proxy on both server B,C I have mentioned host user and password of both server but it is sending proxy on single server could anyone please guide how it will send proxy to both server and in which manner it will send proxy