Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 16th April 2008, 22:29
zxon zxon is offline
Junior Member
 
Join Date: Aug 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default sendmail not sending mail

As the title suggests, my Debian server doesn't send emails whatsoever. I've tried searching the internet and these forums but I'm completely stuck.

I've managed to host multiple websites on this server using ISPConfig, and share folders across my network using Samba, but I simply can't get sendmail working. I don't even know where to begin. I feel like a complete n00b!

Someone please help!!!
Reply With Quote
Sponsored Links
  #2  
Old 17th April 2008, 10:09
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

What errors are you getting ?
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #3  
Old 17th April 2008, 11:32
zxon zxon is offline
Junior Member
 
Join Date: Aug 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

My message board, mailing list and contact form on my personal blog all say they've sent the email whenever I try to use them. However I never receive them. I don't see any error messages as such.

Is there anywhere else where I might see any errors?
Reply With Quote
  #4  
Old 17th April 2008, 14:27
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

Take a look at the logs and let use know what you find
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #5  
Old 17th April 2008, 17:50
zxon zxon is offline
Junior Member
 
Join Date: Aug 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Where're the logs?

See what I mean when I say I feel/am a n00b at this? I don't know what to do, where to look, or anything regarding sendmail.

I probably wouldn't even be able to interpret the logs if I did find them.

Last edited by zxon; 17th April 2008 at 19:38.
Reply With Quote
  #6  
Old 17th April 2008, 17:55
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

Okay are even running sendmail anyway as exim is the default mta on debian and has been for quite sometime.

The mail logs will be found in /var/log/

Code:
ls -l /var/log/mail.*
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #7  
Old 17th April 2008, 19:52
zxon zxon is offline
Junior Member
 
Join Date: Aug 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The reason I assume that I'm using sendmail is because when I check for currently running services under "System -> Services" in my main KDE menu, it lists sendmail as my mail agent. Strangely though, "postfix" is listed there as my mail agent too.

I've carried out that command in the Terminal and got a list of error logs, some of them are dated today so I can only assume they were last written to today.

The logs I checked are mail.log, mail.warn, mail.info and mail.err, all located in /var/log/*. It seems that every twenty minutes, the following is printed into the logs:

Code:
Apr 17 18:40:01 Luggage sm-msp-queue[25282]: My unqualified host name (localhost) unknown; sleeping for retry
Apr 17 18:41:01 Luggage sm-msp-queue[25282]: unable to qualify my own domain name (localhost) -- using short name
The name of my server is "Luggage" and, from what I understand, it's queued any emails I've tried to send and attempting to send them every twenty minutes using the domain name "localhost" and failing each time. I can only summise from this that "localhost" is the wrong name to use.

What would you advise I change this to, and how do I change it?

Last edited by zxon; 17th April 2008 at 19:54.
Reply With Quote
  #8  
Old 17th April 2008, 19:57
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

Add this to your /etc/hosts
Code:
127.0.0.1       localhost localhost.localdomain
Then restart sendmail.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #9  
Old 17th April 2008, 23:52
zxon zxon is offline
Junior Member
 
Join Date: Aug 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks. I found a variation of what you suggested in my hosts file so I just replaced it with yours. I restarted sendmail and then tried to get my message board to send me an activation email for a new account. Again, it says it was successful but I didn't receive the email. I checked the logs again and this is what it threw at me:

Code:
Apr 17 22:43:19 Luggage sendmail[28982]: m3HLhJWG028982: from=www-data, size=2115, class=0, nrcpts=1, msgid=<200804172143.m3HLhJWG028982@Luggage>, relay=www-data@localhost
Apr 17 22:43:19 Luggage sm-mta[29003]: m3HLhJ12029003: from=<www-data@Luggage>, size=2245, class=0, nrcpts=1, msgid=<200804172143.m3HLhJWG028982@Luggage>, proto=ESMTP, daemon=MSP-v4, relay=www-data@localhost [127.0.0.1]
Apr 17 22:43:19 Luggage sendmail[28982]: m3HLhJWG028982: to=*****@gmail.com, ctladdr=www-data (33/33), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32115, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m3HLhJ12029003 Message accepted for delivery)
Apr 17 22:43:24 Luggage sm-mta[29006]: m3HLhJ12029003: to=<*****@gmail.com>, ctladdr=<www-data@Luggage> (33/33), delay=00:00:05, xdelay=00:00:05, mailer=esmtp, pri=122245, relay=gmail-smtp-in.l.google.com. [216.239.59.27], dsn=5.0.0, stat=Service unavailable
Apr 17 22:43:24 Luggage sm-mta[29006]: m3HLhJ12029003: m3HLhO12029006: DSN: Service unavailable
Apr 17 22:43:24 Luggage sm-mta[29006]: m3HLhO12029006: to=<www-data@Luggage>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent
I don't understand the information here. It says the service is unavailable, yet at the end it says "stat=Sent" (??). This is repeated a couple of times before this for a couple of other addresses that I had tried before changing the hosts file. BTW I blanked out the beginning of my email address with asterisks. It doesn't actually look like that on the log. It really shows my email address in full.

Does this shed any light on the problem?

Last edited by zxon; 17th April 2008 at 23:58.
Reply With Quote
  #10  
Old 18th April 2008, 01:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
 
Default

Please make sure that your server isn't blacklisted: http://mxtoolbox.com/blacklists.aspx
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail server using Postfix, Dovecot, Mysql... Postfix virtual maps doesn't work?? tarasbuljba HOWTO-Related Questions 33 28th May 2010 14:33
procmail can't write Hellbound General 27 8th June 2009 21:51
Postfix reject connections gabrix Server Operation 27 25th January 2007 08:37
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 12:16
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ebbay Installation/Configuration 9 4th March 2006 11:47


All times are GMT +2. The time now is 16:13.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.