Discussion:
Postfix long queue IDs
Alvaro Marín
2014-04-30 08:40:28 UTC
Permalink
Hi,

I've found this thread:

http://lists.mailscanner.info/pipermail/mailscanner/2013-March/100441.html

about the long queue IDs in Postfix (>2.9).
Is there any solution to this problem (MailScanner doesn't recognize the
long Postfix queue IDs)? I've tried that solution but it doesn't work
for me.

Thanks!
Regards,
--
Alvaro Mar?n Illera
Hostalia Internet
www.hostalia.com
Joolee
2014-04-30 09:56:03 UTC
Permalink
Not the correct answer but you can disable long queue id's in postfix:
http://www.postfix.org/postconf.5.html#enable_long_queue_ids
Post by Alvaro Marín
Hi,
http://lists.mailscanner.info/pipermail/mailscanner/2013-March/100441.html
about the long queue IDs in Postfix (>2.9).
Is there any solution to this problem (MailScanner doesn't recognize the
long Postfix queue IDs)? I've tried that solution but it doesn't work
for me.
Thanks!
Regards,
--
Alvaro Mar?n Illera
Hostalia Internet
www.hostalia.com
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20140430/d032aace/attachment.html
Jerry Benton
2014-04-30 10:05:11 UTC
Permalink
Are you running long queue ID's? If so, try disabling that in Postfix until
we can get the source updated to handle the long format.

http://www.postfix.org/postconf.5.html#enable_long_queue_ids
Post by Alvaro Marín
Hi,
http://lists.mailscanner.info/pipermail/mailscanner/2013-March/100441.html
about the long queue IDs in Postfix (>2.9).
Is there any solution to this problem (MailScanner doesn't recognize the
long Postfix queue IDs)? I've tried that solution but it doesn't work
for me.
Thanks!
Regards,
--
Alvaro Mar?n Illera
Hostalia Internet
www.hostalia.com
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
--
--
Jerry Benton
Mailborder Systems
www.mailborder.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20140430/5d7b7aa4/attachment.html
Alvaro Marín
2014-04-30 10:46:31 UTC
Permalink
Yes, I know that it can be disabled, but I would prefer to use it
(sometimes, Postfix IDs are repeated).
Perhaps someone has a patch to can use it, if not, I'll try to do it.

Thanks.
Regards,
Post by Jerry Benton
Are you running long queue ID's? If so, try disabling that in Postfix
until we can get the source updated to handle the long format.
http://www.postfix.org/postconf.5.html#enable_long_queue_ids
On Wed, Apr 30, 2014 at 10:40 AM, Alvaro Mar?n <alvaro at hostalia.com
Hi,
http://lists.mailscanner.info/pipermail/mailscanner/2013-March/100441.html
about the long queue IDs in Postfix (>2.9).
Is there any solution to this problem (MailScanner doesn't recognize the
long Postfix queue IDs)? I've tried that solution but it doesn't work
for me.
Thanks!
Regards,
--
Alvaro Mar?n Illera
Hostalia Internet
www.hostalia.com <http://www.hostalia.com>
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
<mailto:mailscanner at lists.mailscanner.info>
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
--
--
Jerry Benton
Mailborder Systems
www.mailborder.com <http://www.mailborder.com>
--
Alvaro Mar?n Illera
Hostalia Internet
www.hostalia.com
Alvaro Marín
2014-05-05 09:19:18 UTC
Permalink
Hi again,

I see that the problem appears using Postfix's long IDs and
hash_queue_depth > 1 (I use this feature with "2").
With hash_queue_depth=1 (Postfix's default) and changing the regexp of
Postfix.pm, as is said in the thread of the URL I pasted before, runs fine.

Regards,
Post by Alvaro Marín
Yes, I know that it can be disabled, but I would prefer to use it
(sometimes, Postfix IDs are repeated).
Perhaps someone has a patch to can use it, if not, I'll try to do it.
Thanks.
Regards,
Post by Jerry Benton
Are you running long queue ID's? If so, try disabling that in Postfix
until we can get the source updated to handle the long format.
http://www.postfix.org/postconf.5.html#enable_long_queue_ids
On Wed, Apr 30, 2014 at 10:40 AM, Alvaro Mar?n <alvaro at hostalia.com
Hi,
http://lists.mailscanner.info/pipermail/mailscanner/2013-March/100441.html
about the long queue IDs in Postfix (>2.9).
Is there any solution to this problem (MailScanner doesn't recognize the
long Postfix queue IDs)? I've tried that solution but it doesn't work
for me.
Thanks!
Regards,
--
Alvaro Mar?n Illera
Hostalia Internet
www.hostalia.com <http://www.hostalia.com>
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
<mailto:mailscanner at lists.mailscanner.info>
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
--
--
Jerry Benton
Mailborder Systems
www.mailborder.com <http://www.mailborder.com>
--
Alvaro Mar?n Illera
Hostalia Internet
www.hostalia.com
Joolee
2014-05-05 10:22:21 UTC
Permalink
https://github.com/MailScanner/MailScanner/blob/master/mailscanner/bin/MailScanner/Postfix.pm
After line 1500, you'll find a method where the folder depth for postfix is
detected. This method seems flawed because it only supports a folder depth
of 1 and otherwise returns 2.
Around line 1630, there is separate code for when folder depth for postfix
queues is 0, 1 or 2. This code should be rewritten to support any depth by
using recursion. I'm afraid I don't have time for that now though.
Post by Alvaro Marín
Hi again,
I see that the problem appears using Postfix's long IDs and
hash_queue_depth > 1 (I use this feature with "2").
With hash_queue_depth=1 (Postfix's default) and changing the regexp of
Postfix.pm, as is said in the thread of the URL I pasted before, runs fine.
Regards,
Post by Alvaro Marín
Yes, I know that it can be disabled, but I would prefer to use it
(sometimes, Postfix IDs are repeated).
Perhaps someone has a patch to can use it, if not, I'll try to do it.
Thanks.
Regards,
Post by Jerry Benton
Are you running long queue ID's? If so, try disabling that in Postfix
until we can get the source updated to handle the long format.
http://www.postfix.org/postconf.5.html#enable_long_queue_ids
On Wed, Apr 30, 2014 at 10:40 AM, Alvaro Mar?n <alvaro at hostalia.com
Hi,
http://lists.mailscanner.info/pipermail/mailscanner/2013-March/100441.html
Post by Alvaro Marín
Post by Jerry Benton
about the long queue IDs in Postfix (>2.9).
Is there any solution to this problem (MailScanner doesn't
recognize the
Post by Alvaro Marín
Post by Jerry Benton
long Postfix queue IDs)? I've tried that solution but it doesn't
work
Post by Alvaro Marín
Post by Jerry Benton
for me.
Thanks!
Regards,
--
Alvaro Mar?n Illera
Hostalia Internet
www.hostalia.com <http://www.hostalia.com>
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
<mailto:mailscanner at lists.mailscanner.info>
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
--
--
Jerry Benton
Mailborder Systems
www.mailborder.com <http://www.mailborder.com>
--
Alvaro Mar?n Illera
Hostalia Internet
www.hostalia.com
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20140505/03d92048/attachment.html
Jerry Benton
2014-05-05 11:12:49 UTC
Permalink
If someone has the correction, please send it to me and I will update the
repository: jerry.benton at mailborder.com

After that I will email Jules about generating a new release package as we
have other items that need to be included in a new build anyway.

Jerry Benton
www.mailborder.com
Post by Joolee
https://github.com/MailScanner/MailScanner/blob/master/mailscanner/bin/MailScanner/Postfix.pm
After line 1500, you'll find a method where the folder depth for postfix
is detected. This method seems flawed because it only supports a folder
depth of 1 and otherwise returns 2.
Around line 1630, there is separate code for when folder depth for postfix
queues is 0, 1 or 2. This code should be rewritten to support any depth by
using recursion. I'm afraid I don't have time for that now though.
Post by Alvaro Marín
Hi again,
I see that the problem appears using Postfix's long IDs and
hash_queue_depth > 1 (I use this feature with "2").
With hash_queue_depth=1 (Postfix's default) and changing the regexp of
Postfix.pm, as is said in the thread of the URL I pasted before, runs fine.
Regards,
Post by Alvaro Marín
Yes, I know that it can be disabled, but I would prefer to use it
(sometimes, Postfix IDs are repeated).
Perhaps someone has a patch to can use it, if not, I'll try to do it.
Thanks.
Regards,
Post by Jerry Benton
Are you running long queue ID's? If so, try disabling that in Postfix
until we can get the source updated to handle the long format.
http://www.postfix.org/postconf.5.html#enable_long_queue_ids
On Wed, Apr 30, 2014 at 10:40 AM, Alvaro Mar?n <alvaro at hostalia.com
Hi,
http://lists.mailscanner.info/pipermail/mailscanner/2013-March/100441.html
Post by Alvaro Marín
Post by Jerry Benton
about the long queue IDs in Postfix (>2.9).
Is there any solution to this problem (MailScanner doesn't
recognize the
Post by Alvaro Marín
Post by Jerry Benton
long Postfix queue IDs)? I've tried that solution but it doesn't
work
Post by Alvaro Marín
Post by Jerry Benton
for me.
Thanks!
Regards,
--
Alvaro Mar?n Illera
Hostalia Internet
www.hostalia.com <http://www.hostalia.com>
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
<mailto:mailscanner at lists.mailscanner.info>
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
--
--
Jerry Benton
Mailborder Systems
www.mailborder.com <http://www.mailborder.com>
--
Alvaro Mar?n Illera
Hostalia Internet
www.hostalia.com
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
--
--
Jerry Benton
Mailborder Systems
www.mailborder.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20140505/53f141e3/attachment.html
Alvaro Marín
2014-05-05 12:25:24 UTC
Permalink
Apart of that, with long queue IDs, Postfix stores messages in a
different way.

- with enable_long_queue_ids=no and hash_queue_depth = 2

/var/spool/postfix/hold/B/B/BB48D1B9DE7
/var/spool/postfix/hold/2/E/2E4441B9825

(the folder hierarchy is done with first and second characters of the
queueID/filename)

- with enable_long_queue_ids=yes and hash_queue_depth = 2

/var/spool/postfix/hold/8/8/3gMjXk3z5kzJXNJ

reading Postfix's Changelog:

20110321

Performance: with long queue file names, queue hashing now
produces the same result as with short names. Postfix uses
the hexadecimal representation of the file creation time
in microseconds, instead of the beginning of the file name
which changes once every year or so, a problem that was
reported by Victor Duchovni. The base 16 encoding gives
finer control over the number of directories than possible
with base 52 encoding. Files: global/mail_queue.[hc]. This
change requires "postfix reload".

So the code from PFDiskStore.pm:

if ($MailScanner::SMDiskStore::HashDirDepth == 2) {
$this->{hdname} =~ /^(.)(.)(.*)$/;
$this->{hdpath} = "$dir/$1/$2/" . $this->{hdname};
} elsif ($MailScanner::SMDiskStore::HashDirDepth == 1) {
$this->{hdname} =~ /^(.)(.*)$/;
$this->{hdpath} = "$dir/$1/" . $this->{hdname};
} elsif ($MailScanner::SMDiskStore::HashDirDepth == 0) {
$this->{hdname} =~ /^(.*)$/;
$this->{hdpath} = "$dir/" . $this->{hdname};
}

is not usefull for this case.

Regards,
Post by Joolee
https://github.com/MailScanner/MailScanner/blob/master/mailscanner/bin/MailScanner/Postfix.pm
After line 1500, you'll find a method where the folder depth for postfix
is detected. This method seems flawed because it only supports a folder
depth of 1 and otherwise returns 2.
Around line 1630, there is separate code for when folder depth for
postfix queues is 0, 1 or 2. This code should be rewritten to support
any depth by using recursion. I'm afraid I don't have time for that now
though.
On 5 May 2014 11:19, Alvaro Mar?n <alvaro at hostalia.com
Hi again,
I see that the problem appears using Postfix's long IDs and
hash_queue_depth > 1 (I use this feature with "2").
With hash_queue_depth=1 (Postfix's default) and changing the regexp of
Postfix.pm, as is said in the thread of the URL I pasted before, runs fine.
Regards,
Post by Alvaro Marín
Yes, I know that it can be disabled, but I would prefer to use it
(sometimes, Postfix IDs are repeated).
Perhaps someone has a patch to can use it, if not, I'll try to do it.
Thanks.
Regards,
Post by Jerry Benton
Are you running long queue ID's? If so, try disabling that in Postfix
until we can get the source updated to handle the long format.
http://www.postfix.org/postconf.5.html#enable_long_queue_ids
On Wed, Apr 30, 2014 at 10:40 AM, Alvaro Mar?n
<alvaro at hostalia.com <mailto:alvaro at hostalia.com>
Post by Alvaro Marín
Post by Jerry Benton
Hi,
http://lists.mailscanner.info/pipermail/mailscanner/2013-March/100441.html
Post by Alvaro Marín
Post by Jerry Benton
about the long queue IDs in Postfix (>2.9).
Is there any solution to this problem (MailScanner doesn't
recognize the
Post by Alvaro Marín
Post by Jerry Benton
long Postfix queue IDs)? I've tried that solution but it
doesn't work
Post by Alvaro Marín
Post by Jerry Benton
for me.
Thanks!
Regards,
--
Alvaro Mar?n Illera
Hostalia Internet
www.hostalia.com <http://www.hostalia.com>
<http://www.hostalia.com>
Post by Alvaro Marín
Post by Jerry Benton
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
<mailto:mailscanner at lists.mailscanner.info>
Post by Alvaro Marín
Post by Jerry Benton
<mailto:mailscanner at lists.mailscanner.info
<mailto:mailscanner at lists.mailscanner.info>>
Post by Alvaro Marín
Post by Jerry Benton
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
--
--
Jerry Benton
Mailborder Systems
www.mailborder.com <http://www.mailborder.com>
<http://www.mailborder.com>
--
Alvaro Mar?n Illera
Hostalia Internet
www.hostalia.com <http://www.hostalia.com>
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
<mailto:mailscanner at lists.mailscanner.info>
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
--
Alvaro Mar?n Illera
Hostalia Internet
www.hostalia.com
Loading...