DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 26th June 2008
bigb89 bigb89 is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 69
Thanked 1 Time in 1 Post
Default System stopped sending e-mail messages.

Hi,

I've been using FreeBSD for a while but I really have never checked log messages or anything like that (I know, shame on me). So today I decided to check my mail (in /var/mail/someuser). I noticed that I had 19 new messages, so I checked all of them and everything seemed to be working just fine. But here's the problem: About a month ago, I changed the hostname of this machine, and I noticed that every since I changed hostnames, I've never got any new mail from the system. So the last message I got, is from about a month ago, and it was sent to my old hostname, while I've never got any new mail to the new hostname.

What could be going on?
Reply With Quote
  #2   (View Single Post)  
Old 26th June 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

Read through /var/log/maillog to see.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #3   (View Single Post)  
Old 26th June 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,051
Thanked 198 Times in 156 Posts
Default

In addition, the output of mailq(1) might be useful.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #4   (View Single Post)  
Old 26th June 2008
bigb89 bigb89 is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 69
Thanked 1 Time in 1 Post
Default

Thanks for the replies!

On my original post I left out a BIG part of what I have done that could explain why I'm not getting any mail from the system.

I have actually switched MTA. I stopped using sendmail and now I have postfix up and running (this was done at the same time that I changed hostname).

I'm able to receive/send mail just fine. I use virtual mail boxes, and I actually use roundcube to send and check mail messages (which is working very good ). Yesterday I used the "mail" command to send an e-mail from the root user to my gmail account, and this also worked just fine. But whenever I try to send an e-mail to root@localhost I don't receive anything.

Here's one of the messages in maillog: to=<root@myhost.mydomain>, relay=none, delay=0.58, delays=0.01/0.04/0.53/0, dsn=5.4.6, status=bounced (mail for myhost.mydomain loops back to myself).

I also checked mail queue and its empty.

I'm almost sure that this problem happened when I switched MTA. Any new ideas on this problem?
Reply With Quote
  #5   (View Single Post)  
Old 30th June 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

Check myhostname, mydomain, and mydestination variables in /usr/local/etc/postfix/main.cf. The comments around those will explain what's wrong.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
Reply

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
Apache with php stopped working after upgrade map7 FreeBSD Ports and Packages 7 7th December 2008 10:39 PM
Managing system mail anomie General software and network 5 23rd September 2008 03:54 PM
Can't get mail system to work properly! Sunsawe FreeBSD Ports and Packages 2 30th June 2008 07:32 PM
error messages delboy FreeBSD Ports and Packages 16 6th June 2008 01:31 PM
Importing private messages? BSDfan666 Feedback and Suggestions 2 2nd May 2008 09:22 PM


All times are GMT. The time now is 06:53 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick