squid email using curl/smtp using squid

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

squid email using curl/smtp using squid

--Ahmad--
Hello Team

i enabled port port in squid for mailing  in squid ssl ports 587.



curl  --url 'smtp://smtp.gmail.com:587' --ssl-reqd --mail-from 'xxxxxxxx@gcom' --mail-rcpt '[hidden email]'  --upload-file mail.txt --user '[hidden email]:mmmmmm' --insecure  -x  5.5.152.44:32000 -U xpostfix:xpostfix -vv

here what i get in squid  error :

07/Sep/2019:16:23:59 -0400      0 1.1.124.243 - 2.2.152.44 32000 TCP_DENIED_REPLY/403 290 PUT ://smtp.gmail.com:587/mail.txt - HIER_NONE/ - - -

if i remove squid section :

-x  5.5.152.44:32000 -U xpostfix:xpostfix

im able to send the email .


anything else do i need to do in squid ?


Thanks






_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: squid email using curl/smtp using squid

--Ahmad--
 ?



> On 7 Sep 2019, at 23:24, --Ahmad-- <[hidden email]> wrote:
>
> Hello Team
>
> i enabled port port in squid for mailing  in squid ssl ports 587.
>
>
>
> curl  --url 'smtp://smtp.gmail.com:587' --ssl-reqd --mail-from 'xxxxxxxx@gcom' --mail-rcpt '[hidden email]'  --upload-file mail.txt --user '[hidden email]:mmmmmm' --insecure  -x  5.5.152.44:32000 -U xpostfix:xpostfix -vv
>
> here what i get in squid  error :
>
> 07/Sep/2019:16:23:59 -0400      0 1.1.124.243 - 2.2.152.44 32000 TCP_DENIED_REPLY/403 290 PUT ://smtp.gmail.com:587/mail.txt - HIER_NONE/ - - -
>
> if i remove squid section :
>
> -x  5.5.152.44:32000 -U xpostfix:xpostfix
>
> im able to send the email .
>
>
> anything else do i need to do in squid ?
>
>
> Thanks
>
>
>
>
>
>
> _______________________________________________
> squid-users mailing list
> [hidden email]
> http://lists.squid-cache.org/listinfo/squid-users

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: squid email using curl/smtp using squid

Antony Stone
On Sunday 08 September 2019 at 17:35:24, --Ahmad-- wrote:

>  ?

It might be that:

a) we don't quite understand what you have done: "i enabled port port in squid
for mailing in squid ssl ports 587" is not easy to understand

or

b) Squid is not designed to be an email proxy, so why are you try to use it as
one?


Antony.

> > On 7 Sep 2019, at 23:24, --Ahmad-- wrote:
> >
> > Hello Team
> >
> > i enabled port port in squid for mailing  in squid ssl ports 587.

I do not understand what that means.

> > curl  --url 'smtp://smtp.gmail.com:587' --ssl-reqd --mail-from
> > 'xxxxxxxx@gcom' --mail-rcpt '[hidden email]'  --upload-file mail.txt
> > --user '[hidden email]:mmmmmm' --insecure  -x  5.5.152.44:32000 -U
> > xpostfix:xpostfix -vv
> >
> > here what i get in squid  error :
> >
> > 07/Sep/2019:16:23:59 -0400      0 1.1.124.243 - 2.2.152.44 32000
> > TCP_DENIED_REPLY/403 290 PUT ://smtp.gmail.com:587/mail.txt - HIER_NONE/
> > - - -
> >
> > if i remove squid section :
> >
> > -x  5.5.152.44:32000 -U xpostfix:xpostfix
> >
> > im able to send the email .
> >
> >
> > anything else do i need to do in squid ?

Don't use it as a mail proxy?


Antony.

--
If the human brain were so simple that we could understand it,
we'd be so simple that we couldn't.

                                                   Please reply to the list;
                                                         please *don't* CC me.
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users