LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-16-2007, 02:18 PM   #1
marcussmit
LQ Newbie
 
Registered: Jan 2007
Posts: 6

Rep: Reputation: 0
Mail to accounts on local server disappears..


Hello,

On my server i can send mail to external accounts as well as accounts to virtual domains on this server, but email to accounts locally on the server disappears.

When i mail to 'root', the mail seems to be sent, but no mail arrives.

Who can tell me where to look and find a solution to this problem?

Thanks in advance for any help.

Kind regards,
Marcus Smit
 
Old 01-16-2007, 10:02 PM   #2
Russell Griffiths
LQ Newbie
 
Registered: May 2006
Location: Sydney, Australia
Distribution: Red Hat 7.3
Posts: 27

Rep: Reputation: 15
Do you send to 'root' etc, or root@mydomain.com.au
the second should work as is,
but the first may need a rule change to work

or you may have an error in your LOCAL_RELAY macro in your config file.
The manual says ..
'Unless you specify otherwise in the LOCAL_RELAY macro, any address that is a username without any @host part is delivered using the 'local' delivery agent.'

it adds that even if LOCAL_RELAY points at another machine to handle local addresses, 'root' will ALWAYS be delivered on the local machine, so the fact that root's mail is NOT arriving, leads me to think you haven't specified a local delivery agent.

at your root prompt, type 'sendmail -bt' to enter rule checking mode, and get the '>' prompt
at this prompt, type =M to list the mailers loaded.
you should see entries for mailers .. 0 (program), 1 (file), 2 (Include0, 3 (Local), 4 (smtp), 5 (esmtp), 6 (esmt8), 7 (dsmtp), and 8 (relay).
Some may be excluded if thats what you specify in the config file, but Mailer 3 HAS to be there f local mail is to be delivered.

If it's not, re-edit the sendmail.mc file to include a line MAILER('local'), and recompile.
 
Old 01-17-2007, 01:19 AM   #3
marcussmit
LQ Newbie
 
Registered: Jan 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you for your response!

Quote:
Originally Posted by Russell Griffiths
Do you send to 'root' etc, or root@mydomain.com.au
the second should work as is,
but the first may need a rule change to work
Yes, i've tried sending to 'root', 'root@$HOSTNAME', 'root@FQDN' and even 'root@ipaddress'.

Quote:
Originally Posted by Russel Griffiths
or you may have an error in your LOCAL_RELAY macro in your config file.
The manual says ..
'Unless you specify otherwise in the LOCAL_RELAY macro, any address that is a username without any @host part is delivered using the 'local' delivery agent.'
It is exactly that what isn't working. How can i check if the local mail delivery agent receives mail and how can i see if it tries to save mail in /var/mail/root ?

Quote:
Originally Posted by Russel Griffiths
it adds that even if LOCAL_RELAY points at another machine to handle local addresses, 'root' will ALWAYS be delivered on the local machine, so the fact that root's mail is NOT arriving, leads me to think you haven't specified a local delivery agent.
Postfix uses a file named 'local_domains'. The secondlevel domainname is mentioned in the file, but local hostname is not. It shouldn't, does it?

Quote:
Originally Posted by Russel Griffiths
at your root prompt, type 'sendmail -bt' to enter rule checking mode, and get the '>' prompt
at this prompt, type =M to list the mailers loaded.
you should see entries for mailers .. 0 (program), 1 (file), 2 (Include0, 3 (Local), 4 (smtp), 5 (esmtp), 6 (esmt8), 7 (dsmtp), and 8 (relay).
Some may be excluded if thats what you specify in the config file, but Mailer 3 HAS to be there f local mail is to be delivered.
Sorry, i should have mentioned i'm using Postfix. I also should have mentioned that the problem first appeared when the server was moved from one datacenter to another. I díd however add Mailer('local') to sendmail.m4 and compile the file.

Quote:
Originally Posted by Russel Griffiths
If it's not, re-edit the sendmail.mc file to include a line MAILER('local'), and recompile.
I'll try that tonight.. Thanks again!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mail server pop'ing a couple of accounts merize147 Linux - Software 1 04-22-2005 07:26 AM
Moving server - Mail Accounts - Postfix ]SK[ Linux - Software 1 03-26-2005 10:28 AM
local mail to kerio mail server rros Linux - Newbie 1 10-03-2004 12:37 PM
Which Mail Server for Local use only? cli_man Linux - Software 1 07-12-2004 11:37 PM
I can't send mail by using local mail server hus Linux - Software 0 05-10-2004 02:18 PM


All times are GMT -5. The time now is 02:28 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration