POP3 Connector to receive by external Kopano server

Hello,

We have a NethServer with postfix which delivers email to another server with Kopano (on Debian).
Sending and receiving of emails are working fine.
But the POP3 connector on NethServer is not being delivered to Kopano mailbox.
If I have the Kopano installed on NethServer, I would think that the destination settings for getmail would be:

[destination]
type = MDA_external
path = /usr/sbin/kopano-dagent
arguments = (’-s’, ‘shiena’)

On NethServer getmail, if I leaved the default getmail cfg file to:

[destination]
type = MDA_external
path = /usr/libexec/dovecot/dovecot-lda
arguments = ("-e","-d","shiena@domain.com.au")

it then gives me an error:

msg 6/7 (5503 bytes), delivery error (command dovecot-lda 1547 error (75, ))
Warning: filter Filter_external spamc (allow_root_commands=“False”, arguments="(’-E’, ‘-s’, ‘250000’)", command=“spamc”, exitcodes_drop="(‘99’, ‘100’)", exitcodes_keep="(‘0’, ‘1’)", group=“amavis”, ignore_header_shrinkage=“False”, ignore_stderr=“False”, path="/usr/bin/spamc", unixfrom=“False”, user=“amavis”) returned fewer headers (34) than supplied (35)
Delivery error (command dovecot-lda 1551 error (75, ))
msg 7/7 (5751 bytes), delivery error (command dovecot-lda 1551 error (75, ))
7 messages (38010 bytes) retrieved, 0 skipped

Changing the getmail cfg to:

[destination]
type = MDA_external
path = /usr/libexec/postfix/lmtp
arguments = (’-s’, ‘shiena’)

then gives me an error:

Warning: filter Filter_external spamc (allow_root_commands=“False”, arguments="(’-E’, ‘-s’, ‘250000’)", command=“spamc”, exitcodes_drop="(‘99’, ‘100’)", exitcodes_keep="(‘0’, ‘1’)", group=“amavis”, ignore_header_shrinkage=“False”, ignore_stderr=“False”, path="/usr/bin/spamc", unixfrom=“False”, user=“amavis”) returned fewer headers (34) than supplied (35)
Delivery error (command lmtp 1586 error (1, ))
msg 7/7 (5751 bytes), delivery error (command lmtp 1586 error (1, ))
7 messages (38010 bytes) retrieved, 0 skipped

My question is, what do you think would be the correct Destination path to be able for those remote emails to reach the mailbox within Kopano server or to go via lmtp as per set on postfix file.

On our NethServer’s postfix/main.cf file, it got:

virtual_transport = lmtp:kopanoserver:2003

Also, to keep the changes on getmail permanently, should I place my files on this folder /etc/e-smith/templates-custom/getmailrc/?
Thank you

Hello @compsos1,

I am not really into Kopano, but maybe you can find some tips here:

Yes, you may copy them from /etc/e-smith/templates/getmailrc and edit them afterwards.
http://docs.nethserver.org/projects/nethserver-devel/en/v7/templates.html

Hello mrmarkuz,

Thanks for your response. Sorry, about the delay, we got hit with CentOS 7.4 upgrade drama.
The line below made it start to receive emails, but I need to fix the duplication I’ve been getting.

[destination]
type = MDA_external
path = /usr/sbin/sendmail.postfix
arguments = ("-t","usernamehere")

I will post once I’ve found a solution.

1 Like