Gentoo Archives: gentoo-user

From: Gerrit Kuehn <gerrit.kuehn@×××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] ssmtp - localmail
Date: Thu, 26 Nov 2020 09:21:19
Message-Id: 20201126102109.5275c475@comet2.terra.ger
In Reply to: [gentoo-user] ssmtp - localmail by thelma@sys-concept.com
1 On Thu, 26 Nov 2020 00:20:52 -0700
2 thelma@×××××××××××.com wrote:
3
4 > According to:
5 > https://wiki.webevaluation.nl/sending_e-mail_with_ssmtp
6 > ssmtp has no local e-mail so it can not send cron output to
7 > /var/mail/user
8
9 The manpage here says
10
11 ---
12 It does not do aliasing, which must be done either in the user agent or
13 on the mail-hub. Nor does it honor .forwards, which have to be done on the
14 recieving host. It especially does not deliver to pipelines.
15 ---
16
17 >
18 > But from posting at:
19 > https://unix.stackexchange.com/questions/69133/where-is-the-setting-for-sending-email-to-a-system-user-with-ssmtp
20 >
21 > Aliases for TO: addresses would normally need to be set in
22 > /etc/aliases, but SSMTP doesn't read this! Instead, you need to edit
23 > /etc/mail.rc and add a line such as alias root
24 > root<yourname@×××××××××.com>
25 >
26 > Can anybody verify it?
27
28 Not right now, but what do you try to achieve? You can set email
29 destination for cron with MAILTO=<yourname@×××××××××.com> in your
30 crontab, if sending mails from cron is your problem.
31
32
33 cu
34 Gerrit