Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Recommendation for receiving mail from cron
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
solamour
l33t
l33t


Joined: 21 Dec 2004
Posts: 638
Location: San Diego, CA

PostPosted: Wed Mar 13, 2019 11:47 pm    Post subject: [Solved] Recommendation for receiving mail from cron Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7272
Location: Saint Amant, Acadiana

PostPosted: Thu Mar 14, 2019 12:06 am    Post subject: Reply with quote

mail-client/mailx
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
solamour
l33t
l33t


Joined: 21 Dec 2004
Posts: 638
Location: San Diego, CA

PostPosted: Thu Mar 14, 2019 12:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7272
Location: Saint Amant, Acadiana

PostPosted: Thu Mar 14, 2019 12:47 am    Post subject: Reply with quote

I use it to send mail to my LAN mail server. Perhaps it can drop mail into local mail directory, haven't tried.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
solamour
l33t
l33t


Joined: 21 Dec 2004
Posts: 638
Location: San Diego, CA

PostPosted: Thu Mar 14, 2019 8:32 pm    Post subject: Reply with quote

[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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum