wclemo
(Clemo Warui)
April 21, 2017, 8:09am
1
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
giacomo
(Giacomo Sanchietti)
April 21, 2017, 1:57pm
2
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?
wclemo
(Clemo Warui)
April 21, 2017, 6:24pm
3
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
giacomo
(Giacomo Sanchietti)
April 24, 2017, 12:10pm
4
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.
wclemo
(Clemo Warui)
April 24, 2017, 3:36pm
5
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