Urgent: Sendmail Help
am 07.10.2004 01:45:51 von Tony Gogoi
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=, 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=, 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=, ctladdr= (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
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Urgent: Sendmail Help
am 07.10.2004 02:40:19 von cummings
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
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Urgent: Sendmail Help
am 07.10.2004 03:51:52 von Tony Gogoi
> 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.
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Urgent: Sendmail Help
am 07.10.2004 04:03:10 von Tony Gogoi
>
> 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.
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Urgent: Sendmail Help
am 07.10.2004 06:33:07 von cummings
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
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Urgent: Sendmail Help
am 07.10.2004 09:16:49 von urgrue
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.
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Urgent: Sendmail Help - Resolved
am 07.10.2004 17:21:04 von Tony Gogoi
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....)
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html