Link to home
Start Free TrialLog in
Avatar of drew17
drew17

asked on

How to configure sendmail on Ubuntu 8.04 server

Hello,

What I want to do is setup sendmail (or something similar) on my linux server to send emails. I have several scripts I want to be able to email the output to me. I do not want my server to accept connections and relay mail from other machines. From what I have read, sendmail is the best choice.
What is the best way to do this?

Thanks in advance!
Avatar of fosiul01
fosiul01
Flag of United Kingdom of Great Britain and Northern Ireland image

Hi yah
You can  use sendmail without any problem, other options are postfix which is good aswell, but sendmail i will say easy to use and configure.
here is a good tutorial ,
http://www.chinalinuxpub.com/doc/www.siliconvalleyccie.com/linux-hn/sendmail.htm
any problem let me know will be happy to help.


or if you want to use post fix.
http://www.howtoforge.com/perfect_setup_ubuntu_5.04_p4
have a look this one, its Sendmail VS posfix
https://www.experts-exchange.com/questions/21962377/sendmail-vs-postfix.html

according to this one, people is preferring postfix!! any way, i always work on sendmail, for me its easy to install and if you use webmin, then its more easy..

Avatar of drew17
drew17

ASKER

Thanks for the info.

Right now I am getting the following messages in my /var/log/mail.log file: (smtp.server.net is an external mail server)

Nov 25 11:35:02 saturn sm-msp-queue[16558]: mAP001U9006750: timeout waiting for input from smtp.server.net during client greeting
Nov 25 11:35:02 saturn sm-msp-queue[16558]: mAP001U9006750: SYSERR(smmsp): deliver: null host name in signature: Connection timed out with smtp.server.net
Nov 25 11:35:02 saturn sm-msp-queue[16558]: mAP001U9006750: to=root, ctladdr=smmsp (108/120), delay=16:35:01, xdelay=00:05:00, mailer=relay, pri=4440401, relay=smtp.server.net [64.202.165.58], dsn=4.0.0, stat=Deferred: Connection timed out with smtp.server.net
Nov 25 11:35:02 saturn sendmail[16599]: mAPGP1Ha016599: from=smmsp, size=734, class=0, nrcpts=1, msgid=<200811251625.mAPGP1Ha016599@saturn.my.domain.net>, relay=smmsp@localhost


In my sendmail.mc file, I have a smarthost defined as my smtp.server.net and also using auth_info.

Also, I have my own domain controller/DNS server/DHCP server which is a windows server 2003 box, do I need to add an MX record to my DNS server?


Thanks!

Avatar of drew17

ASKER

This issue is not resolved but need to close the question.
HI yah
i am sorry i didnot see your post ,
if you need still help and i would be able to

i understand , you are using smtp.server.net as smart host

is your server authorized to send email via that smart host ??
Avatar of drew17

ASKER

Thank you for responding.

What do you mean by authorized?

Thanks
your stmp.server.net is that Isp server or EXchange server or any other linux server on the same network ??

like if you want to use smart host and your stmp server is exchagne then you need have permission to sent email from your server via exchagne

by authorized i meant : is your server is allowed to send email via your Smtp.server.net ??
Avatar of drew17

ASKER

Ahh, OK.

Thank you for a quick reply.

My smtp.server.net is actually where I have my domain hosted from. I was trying to use my ISP server (Rogers) but was having difficulty so switched to the mail server through my hosting (secureserver.net through godaddy).

How can make sure my server is allowed to send email?
Is there an alternative to using a smart host?
ASKER CERTIFIED SOLUTION
Avatar of fosiul01
fosiul01
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
HI HOpe you are happy with the solution, if you dont mind can i sent an object for the deletion ??other wise it will delete automatically after 2 days!! need some points!! ahahahaha
Avatar of drew17

ASKER

Yes, thank you for all your help! It makes sense to me now. I'll be happy to award you the points for the question.
hahahah thanks , will wait for the points !!!!

Good luck at EE
Please dont forget to close this question as  its been solved.
Hope not too late but u can see this link:

(I prefer postfix)

http://www.howtoforge.com/perfect-server-ubuntu-8.10-p5

You can relay your sent email thru another email server (from ISP, Gmail, whatever...).