Control: tag -1 moreinfo

On Mon, 24 Feb 2020, Russell Coker wrote:
> spamc -u russ...@coker.com.au --max-size=10485760 127.0.0.1 < spam.mbox
> 
> The above command will correctly scan a file that's more than 500K in size.
> 
> spamc -u russ...@coker.com.au 127.0.0.1 --max-size=10485760 < spam.mbox
> 
> The above command (differing only in the order of 2 parameters)
> doesn't work, spamc logs "skipped message, greater than max message
> size (512000 bytes)" to syslog. The man page for spamc doesn't
> document this, it may be a bug in spamc.
> 
> execve("/usr/bin/spamc", ["/usr/bin/spamc", "-u", "russ...@coker.com.au", 
> "127.0.0.1", "-s", "10485760"], 0x7ffef748a960 /* 15 vars */) = 0
> 
> The above is from stracing spamass-milter, it does what spamc doesn't like and
> there seems to be no way to stop it.

That's really strange; I would have expected the call to spamc to be:

/usr/bin/spamc -u rus...@cocker.com.au -d 127.0.0.1 -s 10485760

That's what the codebase does, and there's no (documented) way to
specify the host without using -d.

Have you modified the init script? Or is there something else
interesting happening here?

-- 
Don Armstrong                      https://www.donarmstrong.com

Il semble que la perfection soit atteinte non quand il n'y a plus rien
a ajouter, mais quand il n'y a plus rien a retrancher.
(Perfection is apparently not achieved when nothing more can be added,
but when nothing else can be removed.)
 -- Antoine de Saint-Exupe'ry, Terres des Hommes

Reply via email to