1834437 Members
2501 Online
110067 Solutions
New Discussion

Re: sendmail setup

 
Francis Flan
Regular Advisor

sendmail setup

Hi, I want a cron job to email me updates, I havent used sendmail before to need help starting off.
My submit.cf file contains
-rw-r----- 1 root bin 881 Jan 12 2007 aliases
-rw-r----- 1 root mail 24576 Jan 8 14:27 aliases.db
-r--r--r-- 1 bin bin 5761 Jan 12 2007 helpfile
-r--r--r-- 1 bin bin 10222 Feb 15 2007 mailcap
-r--r--r-- 1 bin bin 101837 Jan 8 12:35 sendmail.cf
-r--r--r-- 1 bin bin 701 Nov 13 14:24 sendmail.cw
-rw------- 1 root mail 44 Jan 8 14:27 sendmail.pid
-r--r--r-- 1 root sys 90587 Jan 8 12:46 submit.cf

In submit.cf and sendmail.cf I have added DS

I try to send an email in elm but just hangs until I interrupt it.

Never used sendmail before so ive probably missed some steps.
thanks for any help
5 REPLIES 5
Tim Nelson
Honored Contributor

Re: sendmail setup

many ways.

Easiest:
echo "my message"|mailx -m -s "my subject" somebody@somewhere.com

To verbosely test.
sendmail -v somebody@somewhere.com

when done

Watch the output to see if connecting and getting delivered. If not then senmail config needs to be troubleshot.

The DS directive you are setting will relay all mail to exchange_server.co.uk. This means that even mail to a place like yahoo.com will bounce through your relay server instead of directly being delivered. Your relay server must be set to allow this. Now a days most mail servers do not allow this due to forging and spam.


Roberto Arias
Valued Contributor

Re: sendmail setup

Hi Francis:

try send mail with 'sendmail -v

...
.
'

and see the output. Then check the file /var/adm/syslog/mail.log and look foor yor messages. please send me the output of mail.log
The man is your friend
Francis Flan
Regular Advisor

Re: sendmail setup

Thanks guys,
When I tried to use sendmail it said the exchange server refused the connection.
I used a different server (internal) and it worked just fine.
kggj
Advisor

Re: sendmail setup

Hi


To configure your sendmail edit the following line with your server name ( Fully qualified name)

#Dj$w.Foo.COM
Dj$ server1.xxxx.com

Then re start sendmail daemon


To send mail, use the mailx command as follow ..

mailx -s " subject" yourid@yourdomain.com
.


rgds/ James

Geoff Wild
Honored Contributor

Re: sendmail setup

You may also need to set the DM macro in sendmail.cf and submit.cf:

DMyourdomain.com

Trying doing a test:

sendmail -v -f you@yourdomain.com you@yourdomain.com
Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.