Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sendmail usage

Status
Not open for further replies.

kerick

IS-IT--Management
Nov 17, 2000
40
US
I went through all 8 steps of sendmail setup.
now how do I actually use it?

I've run sh Build install in all the dirs

don't know the next step

 
There should be an init script locate din /etc/init.d/ that should start it.

You may be able to type:
/etc/init.d/sendmail start

That all really depends on what OS you are on. if that doesn't work, then you can type

<path to sendmail>/sendmail -q30m -bd.

The path to sendmail is usually either /usr/lib/, /sbin, or /usr/sbin
 
I'm using turbolinux 6
I didn't find and init.d directory

sendmail is in /usr/sbin
if I go to that dir and type sendmail
I get &quot;recipient names must be specified&quot;

does pine automatically use sendmail?


If it wasn't in /usr/sbin
how would I search for the sendmail binary?


Another problem. when I tried to use pine to send it showed
my email address as root@. with a leading . before an err 553 5.1.2
 
Did you type the -q30 -bd parameters after the command. If you don't, it thinks you are trying to send an email.

Just so you understand how it all relates, sendmail is a mail server that delivers mail to a local users on its host, or relays mail to the proper host where the account resides.

Pine communicates with sendmail to deliver its messages, but it does not start sendmail up. So sendmail must be running before mail from pine can be delivered.

On turbolinux, the init.d directory is located in /etc/rc.d/

You command to start sendmail should be:

/etc/rc.d/init.d/sendmail start

Hope this helps!
 
getting closer.

ok now if I am in the dir and type
sendmail -q30 -bd
I get:
451.4.0.0 /etc/mail/sendmail.cf: line 73:fileclass:cannot open '/etc/mail/local-host-names': no such file or directory

at this point I removed the receive name from the sendmail
later I will add a file for mail.whatever.com

I ran sendmail -q30 -bd after that and now
it goes to a new line. I guess its running.
however I now have one other problem in pine.
is my server name or email supposed to be root@. or root@if 2nd how do I change the config

tia
Kerick
 
It is the second option, it should be root@
To change this I think it may be in either of two places. First is in pine. There is a configu option off teh main menu. I think you have to typ s for setup (not sure). Then in there is a reply to address. See if that is set correctly.

If that isn't it, then it is possible that you domain info is incorrect in either /etc/hosts or /etc/hostname. I am not terribly familar with turbolinux, I use mostly solaris.

If I had to guess, I think the pine seeting is where it needs adjusting.

If you want to verify that sendmail is running, you can telnet to the service. This is simple.

Type:

telnet localhost 25

This will telnet to port 25 (SMTP) on your localhost. Then you should be able to type helo, it it should respond with telling you what its server name is.

To get out, you can either type quit, exit. If neither of those work, then you can type ^] (which is control-key and right bracket &quot;]&quot;). Then type quit and you should be returned to your command prompt.

Hope this helps you out!
 
couldn't find reply to address... need more pine help.
looking...

 
found what I needed
In setup I needed to change the user-domain
once set I could email out on my domain name.
however... I need to transfer my domain name from my isp who has my record to me.
what are the steps for that.

thanks
Kerick
 
Whichever DNS server that actually has Statement of Authority needs to have the IP for your domain changed, or at least the mail exchanger record for your domain, if all you want to do is send and receive email.

Statement of authority can be found out by going to and click on the whois link (top right). Then type your domain into the form.

Whoever comes up as the DNS server for your domain, that is where the DNS record needs to be changed. If you will be doing your own DNS, then you will need to apply for those changes through the registrar you originally signed up for your domain.
 
what would you do. run your own dns or not.
I am planning on setting up email and a webserver
 
Running a DNS server can be a pain, so if you can, I would just let whoever is running it now, continue running it (as long as you are staying with that ISP).

They will have to put several entries in DNS for you.

You will need alpha records, an mx record and maybe a cname.
So you will need an entries like this:

create the mail exchanger record
DOMAIN.com. MX 10 mail.DOMAIN.com.

create records to map domains to IP addresses
DOMAIN.com. A IP ADDRESS
MAIL.DOMAIN.com. A IP ADDRESS

create an alias to call your domain
CNAME DOMAIN.com.

Hope this helps!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top