![]() |
|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
Greetings,
Since sendmail is running by default, I'd like to have the results of cron jobs emailed to my external email address rather than my username. Is there any special tweaking (other than lots of coffee ![]() I've never dealt with sendmail before. |
|
|||
![]()
you'll need to edit /etc/aliases. Say you want to redirect all roots emails to .. here@there.com, you'd put the following in that file
Code:
root here@there.com |
|
|||
![]() Quote:
|
|
|||
![]()
heh...
~/.forward |
|
|||
![]()
Ha, well, not the best idea...but I'm lazy!
|
|
|||
![]()
Trying
Code:
mail -s "test" me@external-email.com I'm a bit confused by reading the man pages for hostname, setdomainname, myname, and so on, but I need to preserve DNS / DHCP for my machine, since behind a router. Ah, networking... |
|
|||
![]() Quote:
All you have to do is to edit as root the file /etc/hosts and include a fictitious FQDN for your machine. For example, the machine GX300 with IP number 192.168.0.7, could have as the fictitious FQDN GX300.test.net, and be entered in the HOSTS file as follows: Code:
192.168.0.7 GX300 GX300.test.net |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cron won't execute a perl script | ivanatora | FreeBSD General | 4 | 17th August 2008 07:53 AM |
cron newsyslog message | starbuck | FreeBSD General | 2 | 6th August 2008 07:33 PM |
Cron running but not working | stukov | Other BSD and UNIX/UNIX-like | 26 | 24th July 2008 01:17 PM |
Please help me automate getmail with cron | cssgalactic | FreeBSD General | 2 | 9th July 2008 10:13 PM |
Cronjob script does not run in cron | godfrank | FreeBSD General | 9 | 30th June 2008 12:41 AM |