Hi!
In order to accumulate all my mail, process it by the same standards and make it available on one central IMAP server, I am currently trying to set up a chain of [several remote accounts] -> getmail -> procmail -> spamassassin -> clamav -> exim4 -> [central remote account].
The last time I did something like this is long past, so I am struggling quite a bit. Fortunately, only two problems remain.
* getmail fetches duplicates. It does not matter wether I set it up to use POP3 or IMAP on the same server, it always gets everything from all my accounts every time I run it.
There has been a bug in the past which produced the same behavior, but it had to do with a faulty implementation of IMAP and thus does not concern my setup.
The read_all flag for the respective accounts is set to 'false'.
The digests of known messages are built, and are readable by the program.
Here is a sample config file:
Code:
[default]
verbose = 1
readall = false
delete = 0
message_log = /var/log/getmail.log
timeout = 240
max_message_size = 0
[retriever]
type = SimplePOP3Retriever
server = xxx
username = xxx
password = xxx
[filter-spam]
type = Filter_external
path = /usr/bin/spamc
[filter-virus]
type = Filter_classifier
path = /usr/bin/clamdscan
arguments = ("--stdout", "--no-summary", "-")
exitcodes_keep = (0, )
[filter-virus2]
type = Filter_external
path = /usr/bin/formail
arguments = ("-R", "X-getmail-filter-classifier:", "X-ClamAV:")
[destination]
type = MDA_external
path = /usr/bin/procmail
unixfrom = true
What is wrong with that setup?
* Also, I seem not to be able to forward my mail to the external address. It is located with a free web hosting provider (x10hosting.com), whose SMTP server I tried beforehand. (Simple HELO; MAIL FROM <random address>; RCPT TO <remote account>; DATA [...] .; QUIT and a message apped in the inbox.) I set up exim4 to use that exact SMTP as a Smart Host, and as procmail directs mail to one of the addresses I tried, I assume that the procedure is about the same I tried. However, neither a message nor an error is ever received. What could be wrong here? My procmail recipe is as follows:
Code:
DEFAULT=/var/mail/$LOGNAME
VERBOSE=no
:0
* X-ClamAV:.*FOUND
inbox-virus
:0
* X-Spam-Flag: YES
* ! ^X-Loop: pikaro
{
:0fwh
| formail -A"X-Loop: pikaro"
:0c
inbox-spam
:0
!spam@xxx
}
:0
* ! ^X-Spam-Flag: YES
* ! ^X-Loop: pikaro
{
:0fwh
| formail -A"X-Loop: pikaro"
:0c
inbox
:0
!root@xxx
}
Any errors here?
Thanks for any advice! I'll be glad to provide any furthe information needed, of course.