954,224 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

sendmail config

Hey all,
i am having trouble getting sendmail to work, all i need it to do is send on any mail to the main smtp server which can then send to the correct user. in the .cf file the smart host field shows 'DSmyserver.mydomain.com' which is correct as far as i know. i havent changed any other part of the file as i was informed this is all i need.

can any one help?

the server is internal so i'm not worrying about an security config or external mail function
i just want the box to use sendmail to pass on mail from a web page (local) to the main email server.

cheers

spikes

spikes
Junior Poster
106 posts since Jul 2003
Reputation Points: 11
Solved Threads: 2
 

Sorry, I can't help :( No experience with sendmail. I guess I don't need to say to check out man pages at sendmail.org. Aside from that, check out the RedHat documentation on redhat.com. They're often pretty good and easily adaptable to other linux distros as well.

cscgal
The Queen of DaniWeb
Administrator
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

Are you trying to set up a email relay server? senario:
your inside server name= ds.domain.com
put this line in your virtusertable file
@domain.com %1@ds.domain.com
mail send to [email]john@domain.com[/email] will have sendmail forward to
[email]john@ds.domain.com[/email]
if you are using Exchange for internal mail, be sure you have an email address for [email]john@ds.domain.com[/email] and [email]john@domain.com[/email]

don't forget to run :
makemap hash /etc/mail/virtusertable < virtusertable
assumming your virtusertable is in /etc/mail

freebie
Newbie Poster
10 posts since Aug 2003
Reputation Points: 10
Solved Threads: 0
 

Hey all, i am having trouble getting sendmail to work, all i need it to do is send on any mail to the main smtp server which can then send to the correct user. in the .cf file the smart host field shows 'DSmyserver.mydomain.com' which is correct as far as i know. i havent changed any other part of the file as i was informed this is all i need.

can any one help?

the server is internal so i'm not worrying about an security config or external mail function i just want the box to use sendmail to pass on mail from a web page (local) to the main email server.

cheers

spikes

You're trying to sendmail from a local machine to an SMTP server else where? Why not just set up a relay? If you could run:

sendmail -v -t -i (or mail -v [email]user@host.com[/email]) and copy and paste the output, that would help a lot (I think). You know how to work with sendmail on the command line? Ie:

To: [email]user@host.com[/email]
From: [email]me@myhost.com[/email]
Subject: blah
Yo
^d

subtronic
Junior Poster
117 posts since Aug 2003
Reputation Points: 44
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: