Since a recent update from Sophos, mails coming from SQL-Ledger are marked as spam and blocked by Sophos Email Security and Data Protection systems. The reason is that SQL-Ledger builds message id and boundary in the following way:

  boundary = "SL-" + version + timestamp
  message id = boundary + "@" + domain

Sophos no longer accepts such a message id as "globally unique" as required by RFC 2392. This is a narrow interpretation of what is described very vaguely in the RFC. Marcus Schopen from University of Bielefeld suggests to contruct boundary and message id like this:

  boundary = "SL-" + version + timestamp
  message id = timestamp + "@" + domain

and to change SL/Mailer.pm lines 27...:

  my $boundary = time;
  my $domain = $self->{from};
  $domain =~ s/(.*?\@|>)//g;
  my $msgid = "$boundary\@$domain";
  $boundary = "SL-$self->{version}-$boundary";

We have tested this code with success.
I will update my SQL-Leger repository on Github in this way and recommend to Armaghan to do the same with Ledger123.

Regards
Rolf
_______________________________________________
SQL-Ledger mailing list
[email protected]
http://lists.ledger123.com/mailman/listinfo/sql-ledger

Reply via email to