1 |
On 25/11/22 21:01, William Kenworthy wrote: |
2 |
> |
3 |
> On 25/11/22 20:37, Wols Lists wrote: |
4 |
>> On 25/11/2022 11:56, William Kenworthy wrote: |
5 |
>>> Hi, |
6 |
>>> |
7 |
>>> I am looking into replacing fetchmail with getmail on my mail |
8 |
>>> gateway system |
9 |
>> |
10 |
>> Are you using getmail, or getmail6? |
11 |
>> |
12 |
>> https://pyropus.ca./software/getmail/documentation.html#python3 |
13 |
>> |
14 |
>> A quick "emerge --search getmail" shows that gentoo is distributing |
15 |
>> getmail6 under getmail's name - they are two completely different |
16 |
>> programs. I guess somebody should file a bug to get THAT fixed. |
17 |
>> |
18 |
>> The tldr is that the maintainer of getmail has not migrated to |
19 |
>> Python3 - time is hard to find. getmail6 is a fork where somebody has |
20 |
>> fed it through 2to3 and not bugfixed it (properly). In other words, |
21 |
>> whether you choose getmail or getmail6, you have a problem. |
22 |
>> |
23 |
>> Made worse by the fact that many people - distros included! - don't |
24 |
>> realise that getmail and getmail6 are completely different entities. |
25 |
>> |
26 |
>> Cheers, |
27 |
>> Wol |
28 |
>> |
29 |
> I dont think it makes a difference - for my purposes it looks and |
30 |
> works exactly like getmail, but uses python3. I guess what I need is |
31 |
> an MTA that takes input on stdin, and outputs to a host:port |
32 |
|
33 |
|
34 |
The solution was to use sendEmail (its in portage) as below: |
35 |
|
36 |
[destination] |
37 |
type = MDA_external |
38 |
path = /usr/bin/sendEmail |
39 |
arguments = ("-f", "%(sender)", "-t", "my_valid_user@××××.server", "-s", |
40 |
"localhost:10026", "-o", "tls=no", "-o", "message-format=raw") |
41 |
unixfrom = true |
42 |
user = my_valid_user |
43 |
group = my_valid_group |