View previous topic :: View next topic |
Author |
Message |
solamour l33t
Joined: 21 Dec 2004 Posts: 698 Location: San Diego, CA
|
Posted: Wed Mar 13, 2019 11:47 pm Post subject: [Solved] Recommendation for receiving mail from cron |
|
|
All I need is to read the mail from cron when cron fails to finish the job. I'm sure I can just install Postfix and be done with it, but I'd like to know if there are even simpler approaches, considering that I have no need to send nor receive mail from outside.
As for the email client, I'm using Mutt, but I'm open for suggestions as long as it's easy to configure.
__
sol
Last edited by solamour on Thu Mar 14, 2019 8:33 pm; edited 1 time in total |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
solamour l33t
Joined: 21 Dec 2004 Posts: 698 Location: San Diego, CA
|
Posted: Thu Mar 14, 2019 12:37 am Post subject: |
|
|
Jaglover wrote: | mail-client/mailx |
Would that be enough to retrieve the mail or do I need something else to deliver the mail to me?
__
sol |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
solamour l33t
Joined: 21 Dec 2004 Posts: 698 Location: San Diego, CA
|
Posted: Thu Mar 14, 2019 8:32 pm Post subject: |
|
|
[Short Version]
I ended up using "mail-mta/nullmailer" to forward the mail to Postfix running on a different machine (in the same network).
[Long Version]
I don't recall installing nullmailer, but it was there. Perhaps it was installed by default or it came along with other packages that I installed. Anyhow, nullmailer seemed like a good choice for my case, but (correct me if I'm mistaken) it can only relay the mail to a real MTA, such as Postfix or Exim. https://forums.gentoo.org/viewtopic-t-1057618.html has more discussion.
In short, with a few configuration, all mails from cron were sent to my other server that has Postfix.
Code: |
/etc/nullmailer/defaultdomain
my_domain_name
/etc/nullmailer/me
my_host_name
/etc/nullmailer/remotes
server_that_has_postfix smtp
|
It worked out well enough, but come to think of it, just installing Postfix or Exim and configure it to "local only" would have worked just as well. Thanks everyone for sharing your thoughts.
__
sol |
|
Back to top |
|
|
|