[squid-users] squid email using curl/smtp using squid

2019-09-07 Thread --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 '@gcom' 
--mail-rcpt 'y...@gmail.com'  --upload-file mail.txt --user 
'...@gmail.com:mm' --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
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] squid.config

2019-09-07 Thread Sérgio Vieira
Hello,

I’m trying to ignore some domains (like facebook.com, youtube.com, etc), 
meaning that I don’t want logs from this domains. 

I already inserted in the config file the following:
acl nolog dstdomain “/etc/squid/acl-nolog.txt”
access_log none nolog

In the txt, i have:
.facebook.com
.instagram.com

But it’s not working. How to achieve this? I’m using SquidMan v4.0 on macOS.

Thanks in advance.
Best regards

Sent from my iPad

> On 14 Aug 2019, at 06:14, Amos Jeffries  wrote:
> 
>> On 14/08/19 9:11 am, Sérgio Vieira wrote:
>> Hello,
>> 
>> I followed the instructions on this
>> site: https://howchoo.com/g/mwi3ntu1mjq/how-to-set-up-a-proxy-server-on-mac
>> 
>> Regarding your questions:
>> - macOS Mojave 10.14.6
>> - Squid v4.0
>> - Instructions in the site mentioned above
>> - I use SquidMan
>> 
>> Why the changes in the config file don’t got permanent?
>> 
> 
> It sounds like SquidMan is writing a new config file on each restart.
> 
> AFAIK you have to edit the "Template" file used by SquidMan to retain
> any settings in the squid.conf the Squid gets handed.
> 
> If that template is what you are already editing (via the SquidMan UI?),
> then it is probably a bug in SquidMan and you will need to contact the
> author about that.
> 
> Amos
> ___
> squid-users mailing list
> squid-users@lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users