Getmail config template is not retaining multidrop setting

NethServer Version: 7.3
Module: POP3 Connector (Getmail)

I have a working modified Getmail Multidrop config, as below. I have created a custom template and modified the below files to retain the modified settings when Getmail update (or WebGUI disable/enable) is done.

The section 20destination is able to retain modified settings when I do signal-event nethserver-getmail-update.

But the file 10retriever is not retaining the MultidropPOP3Retriever entry. It restores back the initial SimplePOP3Retriever setting.
Its only this part that fails to update.

/etc/e-smith/templates-custom/getmailrc/10retriever
/etc/e-smith/templates/getmailrc/20destination

= Multidrop config

[retriever]
type = MultidropPOP3Retriever
server = mail.isp.com
username = mailbox@example.com
password = mypass
envelope__recipient = envelope-to:1

[destination]
type = MDAexternal_
path = /usr/libexec/dovecot/dovecot-lda
arguments = ("-e","-d","%(recipient)")
user = vmail
group = vmail

Where can I do a persistent entry modification to retain MultidropPOP3Retriever entry ?

Regards,

Clemo

The template-custom method is the right one.

But it’s not clear what’s your modification.
Can you please post your template-custom or a diff with the original one?

My template custom is as follows;

cat /etc/e-smith/templates-custom/getmailrc/10retriever

[retriever]
{
my $retr = $account->prop(‘Retriever’) || ‘MultidropPOP3Retriever’;
my $server = $account->prop(‘Server’) || ‘localhost’;
my $user = $account->prop(‘Username’) || ‘’;
my $pass = $account->prop(‘Password’) || ‘’;
$OUT .= “type = $retr\n”;
$OUT .= “server = $server\n”;
$OUT .= “username = $user\n”;
$OUT .= “password = $pass\n”;
}
envelope_recipient = envelope-to:1

Regards,

Clemo

You need to manually set the Retriever prop for the account.

For example:

db getmail setprop myaccount MultidropPOP3Retriever

Remember to not modify the account from the web interface.

Thanks Giacomo.

I also somehow managed to make the setting persistent in a different way.
I created the retriever as below, and so far it appears to retain the settings.

cat /etc/e-smith/templates-custom/getmailrc/10retriever

[retriever]
type = MultidropPOP3Retriever
server = mail.isp.com
username = mailbox@example.com
password = mypass
envelope_recipient = envelope-to:1

Am not sure if there is anything wrong with this method, but so far it seems to work !

Clemo.

1 Like