vestport
15th August 2007, 00:38
Hello,
I have setup a centos 5 server w/sendmail and dovecot. For now I am simply trying to get email working with the command line "mail" program. My MX records are setup as well as reverse lookups on DNS servers. I can send outbound mail fine. The problem is that any inbound mail only goes to the "root" account no matter who the intended recipient is. Even mail on localhost is not working correctly. user@localhost can email roo@localhost fine but email from root@localhost to user@localhost never gets through and ends up in the root mail folder. In short all received emails locally or from the net go to the root account and not to the users that they are addressed to. Outbound emails from regular users are addressed correctly.
I will add that normal users accounts do not appear to have a "Mailbox" of any kind in their home directory. I just don't know what I am missing here. Do I need a .procmailrc or .mailrc in the users directory or an /etc/procmailrc or something?
I have setup sendmail in the past but I admit it was some time ago and I am a bit rusty. Also, security and configuration issues have surely changed since I set a mail server up last. Any help is greatly appreciated.
My domain is psfleasing.com, server is mail.psfleasing.com. Here is a printout of my /var/log/maillog with root trying to email a user account "www@localhost" on the mail.psfleasing.com server.
I do a "mail www@localhost" from the # command line and below is what I see in the maillog.
Aug 14 17:26:13 mail sendmail[7068]: l7ELQDRj007068: from=root, size=38, class=0, nrcpts=1, msgid=<200708142126.l7ELQDRj007068@mail.psfleasing.com>, relay=root@localhost
Aug 14 17:26:13 mail sendmail[7069]: l7ELQDak007069: from=<root@mail.psfleasing.com>, size=335, class=0, nrcpts=1, msgid=<200708142126.l7ELQDRj007068@mail.psfleasing.com>, proto=ESMTP, daemon=MTA-v6, relay=localhost.localdomain [127.0.0.1]
Aug 14 17:26:13 mail sendmail[7068]: l7ELQDRj007068: to=www@localhost, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30038, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l7ELQDak007069 Message accepted for delivery)
Aug 14 17:26:13 mail sendmail[7070]: l7ELQDak007069: to=root, ctladdr=<root@mail.psfleasing.com> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30565, dsn=2.0.0, stat=Sent
It says it sent but is not there if I login to my "www" user account.
The user mailbox is not setup correctly and I don't really know where to start.
Thanks
Art
I have setup a centos 5 server w/sendmail and dovecot. For now I am simply trying to get email working with the command line "mail" program. My MX records are setup as well as reverse lookups on DNS servers. I can send outbound mail fine. The problem is that any inbound mail only goes to the "root" account no matter who the intended recipient is. Even mail on localhost is not working correctly. user@localhost can email roo@localhost fine but email from root@localhost to user@localhost never gets through and ends up in the root mail folder. In short all received emails locally or from the net go to the root account and not to the users that they are addressed to. Outbound emails from regular users are addressed correctly.
I will add that normal users accounts do not appear to have a "Mailbox" of any kind in their home directory. I just don't know what I am missing here. Do I need a .procmailrc or .mailrc in the users directory or an /etc/procmailrc or something?
I have setup sendmail in the past but I admit it was some time ago and I am a bit rusty. Also, security and configuration issues have surely changed since I set a mail server up last. Any help is greatly appreciated.
My domain is psfleasing.com, server is mail.psfleasing.com. Here is a printout of my /var/log/maillog with root trying to email a user account "www@localhost" on the mail.psfleasing.com server.
I do a "mail www@localhost" from the # command line and below is what I see in the maillog.
Aug 14 17:26:13 mail sendmail[7068]: l7ELQDRj007068: from=root, size=38, class=0, nrcpts=1, msgid=<200708142126.l7ELQDRj007068@mail.psfleasing.com>, relay=root@localhost
Aug 14 17:26:13 mail sendmail[7069]: l7ELQDak007069: from=<root@mail.psfleasing.com>, size=335, class=0, nrcpts=1, msgid=<200708142126.l7ELQDRj007068@mail.psfleasing.com>, proto=ESMTP, daemon=MTA-v6, relay=localhost.localdomain [127.0.0.1]
Aug 14 17:26:13 mail sendmail[7068]: l7ELQDRj007068: to=www@localhost, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30038, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l7ELQDak007069 Message accepted for delivery)
Aug 14 17:26:13 mail sendmail[7070]: l7ELQDak007069: to=root, ctladdr=<root@mail.psfleasing.com> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30565, dsn=2.0.0, stat=Sent
It says it sent but is not there if I login to my "www" user account.
The user mailbox is not setup correctly and I don't really know where to start.
Thanks
Art