LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-03-2011, 01:59 AM   #1
travischen
LQ Newbie
 
Registered: Jul 2011
Posts: 2

Rep: Reputation: Disabled
Question 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?
 
Old 07-03-2011, 08:09 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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.
 
  


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
how to configure dovecot&sendmail&postfix to accept other domain email? hocheetiong Linux - Server 3 12-24-2007 03:55 AM
Postfix local user authentication barghota Linux - Server 0 03-07-2007 09:36 AM
Can't deliver mail (postfix) to local user wheel Linux - General 1 04-05-2006 07:45 AM
mail to local user using Postfix hct224 Linux - Newbie 0 03-16-2004 08:08 PM
local user on sendmail nabil_boussetta Linux - Networking 1 03-05-2004 07:47 AM

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

All times are GMT -5. The time now is 08:23 AM.

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