Hello List,

I've a problem here and consulting web searches and AI didn't help much.
I am trying to set up a cronjob (explanation later): (user vscan)
"/usr/bin/fetchmail -f /etc/mail/.fetchmailrc -p IMAP -a -s -n
 --folder LearnAsHam -m '/bin/bash -c \"/usr/bin/tee
 >(/usr/bin/sa-learn --ham --single)|/usr/bin/spamc|/usr/sbin/sendmail
 -i -f %F -t -- %T" '"

which works as far as it gets to sendmail - which itself succeeds, but
the mail is not being processed:
(/var/log/mail:
[...] 8EF10241E0: to=<p...@mail.swabian.net>,
orig_to=<anotherlocaladdress>, relay=local, delay=35, delays=34/0/0/1.2,
dsn=5.4.6, status=bounced (mail forwarding loop for
p...@mail.swabian.net)

I spent some hours trying to get rid of a configured forwarding loop.
But there doesn't seem to be any.
sending to <anotherlocaladdress> and p...@mail.swabian.net works from
several of local hosts.

I think it must have to do with the chaining of fetchmail and sendmail
leaving all headers intact - trying to send an already delivered
message again.

What the cronjob is for:
fetchmail gets mails of folder "LearnAsHam", where I put false-positive
spam-mails. it is sent to sa-learn --ham to make spamassassin learn it
as ham. then it gets sent to spamc and to sendmail to re-deliver the
message.
(and an identical cronjob for "LearnAsSpam" with "sa-learn --spam")

Any idea of how to get those mails delivered and not bounced?

Any help appreciated, thank you very much

Regards,

Paul
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to