Forum Moderators: bakedjake
Also, I'm trying to set up the same process on a local file server. What steps are involved? I've installed sendmail under the assumption that it is required. But, I don't know how to configure it.
Thanks,
- Ryan
I've got cron jobs running on a file server. What do I need to set up to have them email to my account? The file server is sitting right next to my computer if that matters, and I've never sent emails from it. If you'll just point me to the right commands / settings / web pages, I'll figure it out. I just have no idea even where to look.
Thanks,
- Ryan
From the "src" directory:
./sendmail -bt -C ../cf/cf/sendmail.cf or wherever your sendmail.cf file is located.
Sendmail will return a
> prompt. Check for various mailing capabilities by entering: 1) USER (should report local delivery)
2) USER@HOST (should report local delivery)
3) USER@HOST.DOMAIN (should report local delivery)
4) USER@HOST2 (should report SMTP delivery)
5) USER@HOST2.DOMAIN (should report SMTP delivery)
Use every valid HOST for the first 3 tests (i.e. myuser@mydomain , myuser@mailhost , etc.) The specified USER does not need to exist. Perhaps you should use "test" as the USER. Any hosts and domains that are NOT local do not need to exist. This testing is not actually going to send the mail, it just checks to make sure sendmail is set up properly.
Then, test to see if sendmail will actually send the mail:
./sendmail -t -v -C ../cf/cf/sendmail.cf < test.msg where
test.msg is a text file containing complete From: To: and Subject: header lines, like: To: USER@HOST From: myuser@mydomain.com Subject: Testing sendmail The message should be received by the specified USER on the specified HOST. Try delivering mail to yourself on the local machine with a local user before testing it over the 'net.
[edited by: StupidScript at 8:39 pm (utc) on Mar. 9, 2005]
root: myuser@mydomain.com Sendmail is installed on the file server, yes? If the file server is a Linux box, I suggest you install Webmin (any search will find it) for a more user-friendly admin interface ... at least until you get crazy about working in a console. :)