Delivering system mail
I currently have to retrieve crontab generated system mail from the command line. Is it possible to have system mail delivered to my Thunderbird mail client? Rem ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Delivering system mail
On Sun, 25 Jan 2009, Rem P Roberti wrote: I currently have to retrieve crontab generated system mail from the command line. Is it possible to have system mail delivered to my Thunderbird mail client? According to the cron(8) manual: When executing commands, any output is mailed to the owner of the crontab (or to the user named in the MAILTO environment variable in the crontab, if such exists). So you can configure Thunderbird to retrieve email for the user running the crontab, or set the MAILTO environment variable within your crontab. -- Sahil Tandon sa...@tandon.net ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Delivering system mail
On Sunday 25 January 2009 11:01:11 pm Rem P Roberti wrote: I currently have to retrieve crontab generated system mail from the command line. Is it possible to have system mail delivered to my Thunderbird mail client? Rem On a default system, you probably want to edit /etc/aliases an make root mail get redirected to you ... In order to do so, open your /etc/aliases file, look for the line that reads: # Pretty much everything else in this file points to root, so # you would do well in either reading root's mailbox or forwarding # root's email from here. root: and edit it so it looks like this: # Pretty much everything else in this file points to root, so # you would do well in either reading root's mailbox or forwarding # root's email from here. root: yourusername save the changes and run the following command as root: newaliases From then on, all mail directed to root (like those crontab send) will be forwarded to you .. so all you need to do is set up your mail client to pick up it's mail from /var/mail/yourusername and there you go :) Hope that helps. Regards -- Blessings Gonzalo Nemmi ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Delivering system mail
On Sunday 25 January 2009 11:01:11 pm Rem P Roberti wrote: I currently have to retrieve crontab generated system mail from the command line. Is it possible to have system mail delivered to my Thunderbird mail client? Rem On a default system, you probably want to edit /etc/aliases an make root mail get redirected to you ... In order to do so, open your /etc/aliases file, look for the line that reads: # Pretty much everything else in this file points to root, so # you would do well in either reading root's mailbox or forwarding # root's email from here. root: and edit it so it looks like this: # Pretty much everything else in this file points to root, so # you would do well in either reading root's mailbox or forwarding # root's email from here. root: yourusername save the changes and run the following command as root: newaliases From then on, all mail directed to root (like those crontab send) will be forwarded to you .. so all you need to do is set up your mail client to pick up it's mail from /var/mail/yourusername and there you go :) Hope that helps. Regards I had made the changes to aliases as soon as I set up the system. The only thing that I have yet to do is configure Thunderbird to go fetch user's mail. I'll try setting up a a rule to do that and see what happens. Thanks all for the help. Rem ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Delivering system mail
On Monday 26 January 2009 2:42:13 am Rem P Roberti wrote: On Sunday 25 January 2009 11:01:11 pm Rem P Roberti wrote: I currently have to retrieve crontab generated system mail from the command line. Is it possible to have system mail delivered to my Thunderbird mail client? Rem On a default system, you probably want to edit /etc/aliases an make root mail get redirected to you ... In order to do so, open your /etc/aliases file, look for the line that reads: # Pretty much everything else in this file points to root, so # you would do well in either reading root's mailbox or forwarding # root's email from here. root: and edit it so it looks like this: # Pretty much everything else in this file points to root, so # you would do well in either reading root's mailbox or forwarding # root's email from here. root: yourusername save the changes and run the following command as root: newaliases From then on, all mail directed to root (like those crontab send) will be forwarded to you .. so all you need to do is set up your mail client to pick up it's mail from /var/mail/yourusername and there you go :) Hope that helps. Regards I had made the changes to aliases as soon as I set up the system. The only thing that I have yet to do is configure Thunderbird to go fetch user's mail. I'll try setting up a a rule to do that and see what happens. Thanks all for the help. Rem Rem, you can do better than that .. AFAIK you can create a new account on Thunderbird and it'll create a new In-box for that account .. So, create a new account, name it local mail or something like that, and configure it so it fetches email messages from localhost or localmail or /var/mail/yourusername (instead of POP or IMAP) so every system generated mail will go straight to your new account mailbox avoiding the mixing of external and system mail .. thus .. ridding you from the need to create tedious rules to sort mail ;) Hope I helped. Regards -- Blessings Gonzalo Nemmi ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Delivering system mail
On Sun, 25 Jan 2009 17:01:11 -0800, Rem P Roberti remeg...@comcast.net wrote: I currently have to retrieve crontab generated system mail from the command line. Is it possible to have system mail delivered to my Thunderbird mail client? In most cases, system mail will be sent to root. If you edit the file /etc/mail/aliases, you can redirect any mail sent to root to your local user account (/var/mail/yourname) and then use TB to retrieve it from there (just as it would have been recieved by fetchmail). Don't forget to make aliases and restart the sendmail subsystem, see /etc/mail/Makefile for details. -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org