RHEL6 sendmail & postfix can't use local user
Hi All,
I've tried to configure the mail service in RHEL6 but seems both sendmail and postfix can't use local user located in /etc/passwd. Like, user Tommy and Jake they got User Unknow from maillog Tommy:x:506:507::/home/Tommy:/bin/bash Jake:x:507:508::/home/Jake:/bin/bash But IF I use users' home folder not located in /home then it can go throught... mailuser2:x:513:514::/rhome/mailuser/mailuser2:/bin/bash mailuser3:x:514:515::/rhome/mailuser/mailuser3:/bin/bash /var/log/maillog stat=User unknown from Tommy and Jake(using postfix), Jul 3 14:48:07 mail sendmail[7583]: p636m7Ql007583: from=Tommy, size=212, class=0, nrcpts=1, msgid=<201107030648.p636m7Ql007583@mail.example.com>, relay=Tommy@localhost Jul 3 14:48:07 mail postfix/smtpd[7575]: connect from localhost.localdomain[127.0.0.1] Jul 3 14:48:07 mail postfix/smtpd[7575]: NOQUEUE: reject: RCPT from localhost.localdomain[127.0.0.1]: 550 5.1.1 <Jake@example.com>: Recipient address rejected: User unknown in local recipient table; from=<Tommy@mail.example.com> to=<Jake@example.com> proto=ESMTP helo=<mail.example.com> Jul 3 14:48:07 mail sendmail[7583]: p636m7Ql007583: to=Jake@example.com, ctladdr=Tommy (506/507), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30212, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown Jul 3 14:48:07 mail postfix/smtpd[7575]: disconnect from localhost.localdomain[127.0.0.1] /var/log/maillog stat=User unknown from Tommy and Jake(using sendmail), Jul 3 14:52:04 mail sendmail[7696]: p636q4HW007696: from=Tommy, size=212, class=0, nrcpts=1, msgid=<201107030652.p636q4HW007696@mail.example.com>, relay=Tommy@localhost Jul 3 14:52:04 mail sendmail[7697]: p636q4KE007697: <Jake@example.com>... User unknown Jul 3 14:52:04 mail sendmail[7696]: p636q4HW007696: to=Jake@example.com, ctladdr=Tommy (506/507), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30212, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown Jul 3 14:52:04 mail sendmail[7697]: p636q4KE007697: from=<Tommy@mail.example.com>, size=212, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1] Working fine for mailuser2 & mailuser3 which home folder NOT in /home Jul 3 14:53:42 mail sendmail[7779]: p636rgl4007779: from=mailuser3, size=217, class=0, nrcpts=1, msgid=<201107030653.p636rgl4007779@mail.example.com>, relay=mailuser3@localhost Jul 3 14:53:42 mail sendmail[7780]: p636rgOj007780: from=<mailuser3@mail.example.com>, size=477, class=0, nrcpts=1, msgid=<201107030653.p636rgl4007779@mail.example.com>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1] Jul 3 14:53:42 mail sendmail[7779]: p636rgl4007779: to=mailuser2@example.com, ctladdr=mailuser3 (514/515), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30217, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (p636rgOj007780 Message accepted for delivery) Jul 3 14:53:42 mail sendmail[7781]: p636rgOj007780: forward /rhome/mailuser/mailuser2/.forward.mail: World writable directory Jul 3 14:53:42 mail sendmail[7781]: p636rgOj007780: forward /rhome/mailuser/mailuser2/.forward: World writable directory Jul 3 14:53:42 mail sendmail[7781]: p636rgOj007780: to=<mailuser2@example.com>, ctladdr=<mailuser3@mail.example.com> (514/515), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30684, dsn=2.0.0, stat=Sent [root@mail ~]# rpm -qa | grep sendmail sendmail-8.14.4-8.el6.x86_64 [root@mail ~]# rpm -qa | grep postfix postfix-2.6.6-2.el6.x86_64 Do someone know the what's the reason of local user cannot be used? :hattip: |
have you asked red hat ?
you did buy a license -right that also has tech support http://www.redhat.com/support/ https://access.redhat.com/knowledge/docs/ or at least access to the red hat database https://access.redhat.com/knowledge/search most things will require the use of the user name and password you set when you bought and authorized your RHEL6 install. |
All times are GMT -5. The time now is 07:55 PM. |