Help with trashed sendmail file pweeeeeze!

MeNeZ

Expert Member
Joined
Jul 28, 2006
Messages
1,882
Reaction score
49
Hi,

(Firstly, Im not a Linux guy. The dude who does this stuff left so Im sitting with manuals scratching my chin) :wtf:

I had to edit the sendmail.cf file because an SMTP server changed, halfway thru I lost connection and when I logged in again the file has dissapeared!
Ive found an old one but its stock standard.

I get this error which I researched and it basically means there is no mail server specified which makes sense, how much of the sendmail.cf needs to be edited? I imagine it will need the mail server name & SMTP details??? :confused:
 
Oops, here is the error:

cygni:/var/log # rcsendmail restart
Shutting down SMTP port done
Initializing SMTP port (sendmail)554 5.0.0 No local mailer defined
startproc: exit status of parent of /usr/sbin/sendmail: 70
failed
 
Get a linux dude.

Here is a linux pro tip. Before you edit a config file make sure to back it up first.
 
Im pretty sure I just need to define the local mailer by editing the sendmail.cf file
 
Lets check if you have have lost the original .cf file.
What's the output of the following commands?

Code:
[root@centos53 ~]# updatedb
[root@centos53 ~]# locate sendmail.cf
/etc/mail/sendmail.cf
[root@centos53 ~]#
 
If you're using a remote shell with a dodgy connection, I highly recommend running screen first.
 
Menez, I guess the first step would be to actually know where your mail server is? Is it a local machine on the network, is it a remote server? You have to start at step one, then two :p
 
look for a filename called .sendmail.cf.swp in the directory

or try recover it

grep -b 'search-text' /dev/partition > file.txt
 
Yayness! thanks guys, refreshed this page and found many helpfull peeps :D

i fixed it using the omsendin command to recreate the sendmail file and then I changed the permissions with winscp! woooot

*makes backup of sendmail.cf FTW*
 
Top
Sign up to the MyBroadband newsletter
X