linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Urgent: Sendmail Help
@ 2004-10-06 23:45 Tony Gogoi
  2004-10-07  0:40 ` Kevin J. Cummings
  2004-10-07  2:03 ` Urgent: Sendmail Help Tony Gogoi
  0 siblings, 2 replies; 7+ messages in thread
From: Tony Gogoi @ 2004-10-06 23:45 UTC (permalink / raw)
  To: linux-admin


Hello,

I am building a sendmail server as a central mail hub. I installed
sendmail from source, imap from source. But I installed procmail through
RPM file after installing sendmail. Would I need to compile sendmail?

To keep things simple, right now building on the LAN.
"telnet mymailserver 25" works fine.

However, if I go to "Microsoft outlook" and "test settings" it is not able
to send a mail nor authenticate.

Relevant part of the maillog
-------------------------------------------------------------------
> Oct  6 19:37:24 mymailserver sendmail[1351]: NOQUEUE: [192.168.4.41] did
not issue MAIL/EXPN/VRFY/ETRN during connection to MTA
> Oct  6 19:37:34 mymailserver sendmail[1354]: i96NbY201354:
from=<testuser@mydomain.com>, size=0, class=0, nrcpts=1, proto=SMTP,
daemon=MTA, relay=[192.168.4.41]
> Oct  6 19:37:35 mymailserver sendmail[1355]: i96NbZ201355:
from=<testuser@mydomain.com>, size=986, class=0, nrcpts=1,
msgid=<200410062337.i96NbZ201355@mymailserver.mydomain.com>, proto=SMTP,
daemon=MTA, relay=[192.168.4.41]
> Oct  6 19:37:35 mymailserver sendmail[1356]: i96NbZ201355: forward
/home/testuser/.forward.mymailserver+: Permission denied
> Oct  6 19:37:35 mymailserver sendmail[1356]: i96NbZ201355: forward
/home/testuser/.forward+: Permission denied
> Oct  6 19:37:35 mymailserver sendmail[1356]: i96NbZ201355: forward
/home/testuser/.forward.mymailserver: Permission denied
> Oct  6 19:37:35 mymailserver sendmail[1356]: i96NbZ201355: forward
/home/testuser/.forward: Permission denied
> Oct  6 19:37:35 mymailserver sendmail[1356]: i96NbZ201355:
to=<testuser@mydomain.com>, ctladdr=<testuser@mydomain.com> (531/531),
delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30759, dsn=2.0.0,
stat=Sent
> Oct  6 19:37:54 mymailserver ipop3d[1352]: pop3 service init from
192.168.4.41
> Oct  6 19:37:54 mymailserver ipop3d[1352]: Command stream end of file
while reading line user=??? host=[192.168.4.41]


--------------------------------------------------------------------

Any suggestions?

Created user as
useradd -u 531 -s /bin/false tempuser



Tony Gogoi

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Urgent: Sendmail Help
  2004-10-06 23:45 Urgent: Sendmail Help Tony Gogoi
@ 2004-10-07  0:40 ` Kevin J. Cummings
  2004-10-07  1:51   ` Tony Gogoi
  2004-10-07 15:21   ` Urgent: Sendmail Help - Resolved Tony Gogoi
  2004-10-07  2:03 ` Urgent: Sendmail Help Tony Gogoi
  1 sibling, 2 replies; 7+ messages in thread
From: Kevin J. Cummings @ 2004-10-07  0:40 UTC (permalink / raw)
  To: Tony Gogoi, linux-admin

Tony Gogoi wrote:
> Hello,
> 
> I am building a sendmail server as a central mail hub. I installed
> sendmail from source, imap from source. But I installed procmail through
> RPM file after installing sendmail. Would I need to compile sendmail?

You should be able to configure your sendmail via the sendmail.mc (and 
sendmail.cf) file(s).  You will want to include the following line in 
sendmail.mc:

mailer(procmail)dns

Mine comes right after the:

mailer(smtp)dns

line.  Then all you should have to do is rebuild your sendmail.cf file 
(via: make sendmail.cf) and have sendmail reload its configuration 
files.  (If you're lucky, you won't even have to stop/restart the 
already running sendmail daemon....)

In my system, these files live in /etc/mail
YMMV

-- 
Kevin J. Cummings
kjchome@rcn.com
cummings@kjchome.homeip.net
cummings@kjc386.framingham.ma.us

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Urgent: Sendmail Help
  2004-10-07  0:40 ` Kevin J. Cummings
@ 2004-10-07  1:51   ` Tony Gogoi
  2004-10-07 15:21   ` Urgent: Sendmail Help - Resolved Tony Gogoi
  1 sibling, 0 replies; 7+ messages in thread
From: Tony Gogoi @ 2004-10-07  1:51 UTC (permalink / raw)
  To: Kevin J. Cummings; +Cc: linux-admin

> You should be able to configure your sendmail via the sendmail.mc (and
> sendmail.cf) file(s).  You will want to include the following line in
> sendmail.mc:
>
> mailer(procmail)dns
>
> Mine comes right after the:
>
> mailer(smtp)dns
>

I believe I do have that. I'll check that and get back to you.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Urgent: Sendmail Help
  2004-10-06 23:45 Urgent: Sendmail Help Tony Gogoi
  2004-10-07  0:40 ` Kevin J. Cummings
@ 2004-10-07  2:03 ` Tony Gogoi
  2004-10-07  4:33   ` Kevin J. Cummings
  1 sibling, 1 reply; 7+ messages in thread
From: Tony Gogoi @ 2004-10-07  2:03 UTC (permalink / raw)
  To: linux-admin

>
> I am building a sendmail server as a central mail hub. I installed
> sendmail from source, imap from source. But I installed procmail through
> RPM file after installing sendmail. Would I need to compile sendmail?
>
The last line should read "Would I need to RE-compile sendmail?"

Also imap is irrelevant right now as mail should at least be written to
the user's /var/spool/mail. Retrieving the mail would perhaps be a
different issue.

Right now, the server is on the private LAN and isolated from all other
servers.  The only interaction is with the server and a PC. So any mail
sent to the server from the PC should get written to the users'
/var/spool/mail box and thats all.

Also why  permission denied on the .forward file? That file doesn't
exist.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Urgent: Sendmail Help
  2004-10-07  2:03 ` Urgent: Sendmail Help Tony Gogoi
@ 2004-10-07  4:33   ` Kevin J. Cummings
  2004-10-07  7:16     ` urgrue
  0 siblings, 1 reply; 7+ messages in thread
From: Kevin J. Cummings @ 2004-10-07  4:33 UTC (permalink / raw)
  To: Tony Gogoi; +Cc: linux-admin

Tony Gogoi wrote:
>>I am building a sendmail server as a central mail hub. I installed
>>sendmail from source, imap from source. But I installed procmail through
>>RPM file after installing sendmail. Would I need to compile sendmail?
>>
> 
> The last line should read "Would I need to RE-compile sendmail?"

And the answer remains: No, use of procmail (or not) is controlled via 
the sendmail.cf file (built from sendmail.mc).  Which leads me to ask:
If you installed procmail from RPM, why not sendmail as well?  That way 
you'd be sure that the two installations will play well with each other 
(assuming the 2 RPMs come from the same release....)

> Also imap is irrelevant right now as mail should at least be written to
> the user's /var/spool/mail. Retrieving the mail would perhaps be a
> different issue.

What are the permissions on /var/spool/mail?   I seem to remember they 
must be reletively secure or sendmail will complain.

How are you starting sendmail?

What user is senmail running as?

What's in your /var/log/maillog concerning sendmail's startup?

> Right now, the server is on the private LAN and isolated from all other
> servers.  The only interaction is with the server and a PC. So any mail
> sent to the server from the PC should get written to the users'
> /var/spool/mail box and thats all.

Assuming that the permissions allow it to....

> Also why  permission denied on the .forward file? That file doesn't
> exist.

What .forward file?  Is sendmail trying to read another user's $HOME dir 
(while attempting to deliver an email?) and can't because sendmail 
doesn't have sufficient access to even read the directory that is 
supposed to contain the .forward if it *was* present?

-- 
Kevin J. Cummings
kjchome@rcn.com
cummings@kjchome.homeip.net
cummings@kjc386.framingham.ma.us

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Urgent: Sendmail Help
  2004-10-07  4:33   ` Kevin J. Cummings
@ 2004-10-07  7:16     ` urgrue
  0 siblings, 0 replies; 7+ messages in thread
From: urgrue @ 2004-10-07  7:16 UTC (permalink / raw)
  To: linux-admin

On 2004.10.07 07:33, Kevin J. Cummings wrote:
> If you installed procmail from RPM, why not sendmail as well?  That 
> way you'd be sure that the two installations will play well with each 
> other (assuming the 2 RPMs come from the same release....)

I agree. I dont really recommend compiling anything if its not actually 
necessary. Applying security patches to a RPM install is a no-brainer 
and takes about five minutes. Applying them to a source-compiled 
installation is a far bigger headache.

> What .forward file?  Is sendmail trying to read another user's $HOME 
> dir (while attempting to deliver an email?) and can't because 
> sendmail doesn't have sufficient access to even read the directory 
> that is supposed to contain the .forward if it *was* present?

If he added the user with this command:
useradd -u 531 -s /bin/false tempuser
ie without "-m" (create homedir) then im assuming either "tempuser's" 
homedir doesnt exist or was added by hand and mistakenly is owned by 
root:root, for example. The permission denied is not necessarily saying 
"you dont have the rights to alter this file", it could just as well 
mean "you dont have the rights to create this file).
ie - check the ownership and permissions of the homedir.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Urgent: Sendmail Help - Resolved
  2004-10-07  0:40 ` Kevin J. Cummings
  2004-10-07  1:51   ` Tony Gogoi
@ 2004-10-07 15:21   ` Tony Gogoi
  1 sibling, 0 replies; 7+ messages in thread
From: Tony Gogoi @ 2004-10-07 15:21 UTC (permalink / raw)
  To: Kevin J. Cummings; +Cc: linux-admin


Thanks, the problem was resolved by, reloading the sendmail configuration
file sendmail.cf.

I had the lines,
MAILER(`smtp')dnl
MAILER(`procmail')dnl

in my sendmail.mc file from which I used the m4 macro to generate the
sendmail.cf file, but I guess it didn't take "effect" as procmail was not
installed at that stage. After rerunning the m4 macro on sendmail.mc file,
everything worked.

Thanks a lot everyone. I have tested it on only the private LAN right now
with 2 mail accounts and things work fine when the 2 exchange mail with
each other using Outlook configured to use the mail server.

Reagrds,
Tony

>
> You should be able to configure your sendmail via the sendmail.mc (and
> sendmail.cf) file(s).  You will want to include the following line in
> sendmail.mc:
>
> mailer(procmail)dns
>
> Mine comes right after the:
>
> mailer(smtp)dns
>
> line.  Then all you should have to do is rebuild your sendmail.cf file
> (via: make sendmail.cf) and have sendmail reload its configuration
> files.  (If you're lucky, you won't even have to stop/restart the
> already running sendmail daemon....)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-10-07 15:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-06 23:45 Urgent: Sendmail Help Tony Gogoi
2004-10-07  0:40 ` Kevin J. Cummings
2004-10-07  1:51   ` Tony Gogoi
2004-10-07 15:21   ` Urgent: Sendmail Help - Resolved Tony Gogoi
2004-10-07  2:03 ` Urgent: Sendmail Help Tony Gogoi
2004-10-07  4:33   ` Kevin J. Cummings
2004-10-07  7:16     ` urgrue

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).