Hi Louis

Firstly, the problem is not with HTML emails, but the text based template 
emails. I don't have a proof of that but I haven't received complaints from 
anyone regarding HTML emails going to spam. 
Secondly, the problem (afaik) is in guest.pm or util.pm (not in activation.pm 
which only sends HTML based email)

I managed to fix it temporarily by adding the following code to guest.pm and 
util.pm to the $msg options for MIME

Encoding => 'quoted-printable'
Charset => 'utf8'

MIME also has encoded_qp message which I didn't try. 

This has resulted in DKIM verification passing BUT unfortunately the message is 
warped at 76 characters with a '=' at the end of the line which is longer than 
76 characters. 7bit is the default for MIME if nothing else is mentioned. This 
is a temporary fix until I can find something else. 


I will try what you've suggested as well to look what's the problem.

________________________________
> From: lmu...@inverse.ca 
> Date: Tue, 24 Nov 2015 13:56:33 -0500 
> To: packetfence-users@lists.sourceforge.net 
> Subject: Re: [PacketFence-users] DKIM fails while sending packetfence emails. 
> 
> Hi Andy, 
> I am trying to reproduce the problem here and I am not having any luck yet. 
> 
> I have tried changing my conf/templates/emails-guest_registered.html to 
> include a very long line (734 characters) and then run send_email in 
> the debugger. 
> Both the $msg object and the actual sent email are fine (no lines wrapped). 
> 
> Let’s try something. 
> Try to register and use my email as destination (the one in my signature). 
> 
> We have greylisting on our mailserver, so I will not get the email for 
> something like ten minutes anyway. 
> During that time the message should be stuck in the postfix queue on 
> your server. 
> 
> Use postcat to see the contents of the email in the queue. 
> 
> postqueue -q will give you the list of messages in the queue. 
> Find the correct message id and then display it with 
> 
> # postcat -q $QUEUEID 
> 
> That will give you the raw contents of the message in the queue. 
> 
> Are the lines wrapped? 
> 
> 
> Regards, 
> -- 
> Louis Munro 
> lmu...@inverse.ca<mailto:lmu...@inverse.ca> 
> :: www.inverse.ca<http://www.inverse.ca> 
> +1.514.447.4918 x125 :: +1 (866) 353-6153 x125 
> Inverse inc. :: Leaders behind SOGo (www.sogo.nu<http://www.sogo.nu>) 
> and PacketFence (www.packetfence.org<http://www.packetfence.org>) 
> 
> On Nov 24, 2015, at 10:24 , Andy A 
> <andthereitg...@hotmail.com<mailto:andthereitg...@hotmail.com>> wrote: 
> 
> Oh. I already looked at the send_email sub in 
> 
> util.pm 
> guest.pm 
> activation.pm 
> 
> and tried adding utf-8 as content type etc. but that didn't change 
> anything in the DKIM verification. 
> I tried the changes based on one of the tickets (#899) on 'Standardize 
> sending email and setting encoding' and fixed by Derek. 
> 
> I also tried sending an email using 'mail' and loading the message 
> directly from the template. That passed DKIM verification as well. So 
> it's not the message template itself either. 
> 
> Is there anything else I can look at? 
> 
> ________________________________ 
> From: lmu...@inverse.ca<mailto:lmu...@inverse.ca> 
> Date: Fri, 20 Nov 2015 09:53:12 -0500 
> To: 
> packetfence-users@lists.sourceforge.net<mailto:packetfence-users@lists.sourceforge.net>
>  
> Subject: Re: [PacketFence-users] DKIM fails while sending packetfence emails. 
> 
> 
> 
> On Nov 20, 2015, at 9:08 , Andy A 
> <andthereitg...@hotmail.com<mailto:andthereitg...@hotmail.com><mailto:andthereitg...@hotmail.com>>
>  
> wrote: 
> 
> Could you point me to any source files for the templating engine as 
> well? So I can have a look to speed up the investigation. 
> 
> Hi Andy, 
> The templating uses the perl Template Toolkiit. 
> 
> Look at lib/pf/activation.pm under send_email() . 
> 
> Regards, 
> -- 
> Louis Munro 
> lmu...@inverse.ca<mailto:lmu...@inverse.ca><mailto:lmu...@inverse.ca> :: 
> www.inverse.ca<http://www.inverse.ca><http://www.inverse.ca> 
> +1.514.447.4918 x125 :: +1 (866) 353-6153 x125 
> Inverse inc. :: Leaders behind SOGo 
> (www.sogo.nu<http://www.sogo.nu><http://www.sogo.nu>) 
> and PacketFence 
> (www.packetfence.org<http://www.packetfence.org><http://www.packetfence.org>) 
> 
> ------------------------------------------------------------------------------
>  
> _______________________________________________ PacketFence-users 
> mailing list 
> PacketFence-users@lists.sourceforge.net<mailto:PacketFence-users@lists.sourceforge.net>
>  
> https://lists.sourceforge.net/lists/listinfo/packetfence-users 
> 
> ------------------------------------------------------------------------------
>  
> Go from Idea to Many App Stores Faster with Intel(R) XDK 
> Give your users amazing mobile app experiences with Intel(R) XDK. 
> Use one codebase in this all-in-one HTML5 development environment. 
> Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. 
> http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140 
> _______________________________________________ 
> PacketFence-users mailing list 
> PacketFence-users@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/packetfence-users 
> 
> 
> ------------------------------------------------------------------------------
>  
> Go from Idea to Many App Stores Faster with Intel(R) XDK Give your 
> users amazing mobile app experiences with Intel(R) XDK. Use one 
> codebase in this all-in-one HTML5 development environment. Design, 
> debug & build mobile apps & 2D/3D high-impact games for multiple OSs. 
> http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140 
> _______________________________________________ PacketFence-users 
> mailing list PacketFence-users@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/packetfence-users 
                                          
------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
_______________________________________________
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to