LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-13-2009, 08:22 AM   #1
Maspry
LQ Newbie
 
Registered: Sep 2009
Location: Kent, UK
Distribution: Fedora, ubuntu, Knoppix, CentOS
Posts: 12

Rep: Reputation: 1
root mail delivery in postfix enviornment


Hi all
being my 1st post I hope I am in the correct place. I have a new Vserver install running CentOS 5, which appears to be using postfix instead of sendmail which I am more used to. I am also getting used to using plesk 9.2.2 as previously I have done everything from the command line.

I am having problems getting root mail notifications sent to a mailbox I have created through plesk. At present I can see mail queuing to go from root@mylocalhost.mylocaldomain.com and for example apache@mylocalhost.mylocaldomain.com with the destination of root@mylocaldomain.com

I have multiple domains on the Vserver

I tried to modify /etc/aliases

root: me@mylocaldomain.com

executed new aliases and reloaded postfix but this did not work

maillog reports

mail for mylocalhost.mylocaldomain.com loops back to myself

mailq has reported

root@mylocalhost.mylocaldomain.com
(Unable to select desired mailbox)
root@mylocaldomain.com

I am thinking I am either missing something obvious in plesk, or I need to modify postfix configuration files further but drawing a blank at present. If anyone can point me in the right direction it would be appreciated.

Any more infor needed let me know

Many thanks

Maspry
 
Old 09-13-2009, 08:26 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello and Welcome to LQ,

Try this: create a file named .forward in the home directory of root and containing the destination email.
Code:
me@somedomain.com
.

Then restart postfix and check if it works by sending a mail to root. That is if your postfix is configured to send out mail to another MTA. For this you'll have to check the main.cf file in the /etc/postfix directory (not sure if it's located there on CentOS, this is the location on Debian based distros and might differ on CentOS).

Kind regards,

Eric
 
Old 09-13-2009, 01:55 PM   #3
Maspry
LQ Newbie
 
Registered: Sep 2009
Location: Kent, UK
Distribution: Fedora, ubuntu, Knoppix, CentOS
Posts: 12

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by EricTRA View Post
Hello and Welcome to LQ,

Try this: create a file named .forward in the home directory of root and containing the destination email.
Code:
me@somedomain.com
.

Then restart postfix and check if it works by sending a mail to root.
Tried that, I am not convinced that 'root@mylocalhost.mylocaldomain' has a mailbox, since if i login as root and try go to mail then it does not exists.

Quote:
That is if your postfix is configured to send out mail to another MTA.
My assumption is that postfix is the only MTA however qmail does appear to be on the system I think....

Quote:

For this you'll have to check the main.cf file in the /etc/postfix directory (not sure if it's located there on CentOS, this is the location on Debian based distros and might differ on CentOS).

Kind regards,

Eric

Not knowing about postfix enough is perhaps my problem, also plesk seems to do many things with executables or at least moves some of the default postfix files involved (could be mistaken tho).

I could get round it perhaps? by adding a subdomain in Plesk based on the hostname and setting up a catch all rule to deliver mail from the host to my 'root@mydomain.com' but I am not sure if thats the best method.

There is a link I found which suggests a bug but only applies to plesk 9.0.1 from what i understand I am on 9.2.2 I believe.

http://kb.parallels.com/en/6129
I am still investigating and thx for the quick reply Eric!
 
Old 09-13-2009, 02:16 PM   #4
Maspry
LQ Newbie
 
Registered: Sep 2009
Location: Kent, UK
Distribution: Fedora, ubuntu, Knoppix, CentOS
Posts: 12

Original Poster
Rep: Reputation: 1
I do not think the above bug applies since I see mail going to 'root@correcthost.correctdomain.com' its the host thing thats messing things up.

I guess 1 option would be to change the "system" roots email address from 'root@correcthost.correctdomain.com' to 'root@correctdomain.com' instead (hope this makes sence)

Thx
 
Old 09-15-2009, 03:05 PM   #5
Maspry
LQ Newbie
 
Registered: Sep 2009
Location: Kent, UK
Distribution: Fedora, ubuntu, Knoppix, CentOS
Posts: 12

Original Poster
Rep: Reputation: 1
System was a MailDir format, under a qmail directory but postfix is the MTA. Messages are being delivered through the postfix local delivery process. root mail was being delivered to the plesk administrator through back end rules setup in plesk.

Closing this as just my understanding if how plesk/postfix works

Thx for the help
 
  


Reply



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
Postfix +Mysql mail delivery shankar.vishwakarma Linux - Newbie 1 06-28-2009 02:59 AM
Postfix mail delivery failure Ammad Linux - Server 7 06-14-2009 05:50 AM
Mail delivery tracking - PostFix shritesh Linux - Software 3 09-01-2006 02:25 AM
postfix mail delivery berrance Linux - Networking 4 02-28-2005 06:46 AM
Postfix mail delivery issue kokke Linux - Software 6 05-13-2003 05:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:49 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration