qmail Digest 6 Sep 1999 10:00:01 -0000 Issue 751

Topics (messages 29855 through 29873):

help: qmail question
        29855 by: Mate Wierdl <[EMAIL PROTECTED]>

Newbee to Qmail
        29856 by: Ron 'The InSaNe One' Rosson <[EMAIL PROTECTED]>
        29857 by: Magnus Bodin <[EMAIL PROTECTED]>
        29858 by: "James J. Lippard" <[EMAIL PROTECTED]>

Problems with tcpserver
        29859 by: "Martin Paulucci" <[EMAIL PROTECTED]>
        29861 by: Sam <[EMAIL PROTECTED]>

Login shell for telent clients
        29860 by: Bill Parker <[EMAIL PROTECTED]>

can't start
        29862 by: James <[EMAIL PROTECTED]>
        29863 by: Patrick Berry <[EMAIL PROTECTED]>
        29864 by: James <[EMAIL PROTECTED]>
        29865 by: James <[EMAIL PROTECTED]>
        29866 by: Magnus Bodin <[EMAIL PROTECTED]>
        29867 by: James <[EMAIL PROTECTED]>
        29868 by: "James J. Lippard" <[EMAIL PROTECTED]>
        29869 by: [EMAIL PROTECTED]
        29870 by: James <[EMAIL PROTECTED]>
        29871 by: James <[EMAIL PROTECTED]>

Setting qmail to be a local server and a gateway
        29872 by: Mark Parker <[EMAIL PROTECTED]>

Error message in mail.log
        29873 by: Mark Parker <[EMAIL PROTECTED]>

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To bug my human owner, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


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


You went back to your old style of not giving detals about your setup,
no log output.  Your report sounds like:

"I have a Toyota.  It does not work; please Help!"

Mate




I just got qmail up and installed on my system. I am coming from a Sendmail
8.9.3 setup. Here are the following issues that I am having a hard time
figuring out:
        1. How to get qmail to use the /etc/aliases I was using when I was
           running sendmail.
        2. How to set a Smarthost for outgoing mail.
        3. Whatis the equivalent of mailstats for qmail

TIA
-- 
-------------------------------------------------------------------
Ron Rosson                      ... and a UNIX user said ...
The InSaNe One                             rm -rf *
[EMAIL PROTECTED]            and all was null and void
-------------------------------------------------------------------
Therapy is expensive, poppin' bubble wrap is cheap! You choose.




On Sun, 5 Sep 1999, Ron 'The InSaNe One' Rosson wrote:

> 1. How to get qmail to use the /etc/aliases I was using when I was
>    running sendmail.

install fastforward. And then learn about .qmail-files.

> 2. How to set a Smarthost for outgoing mail.

what is that?

> 3. Whatis the equivalent of mailstats for qmail

qmailanalog

Look at http://www.qmail.org/

And don't miss Dave Sills "Life with qmail"
<http://Web.InfoAve.Net/~dsill/lwq.html>


cheers,

-- 
magnus
        -- MOST useless 1998 * http://x42.com/





On Sun, 5 Sep 1999, Ron 'The InSaNe One' Rosson wrote:

> I just got qmail up and installed on my system. I am coming from a Sendmail
> 8.9.3 setup. Here are the following issues that I am having a hard time
> figuring out:
>       2. How to set a Smarthost for outgoing mail.

Looks like your other two questions have been answered already.  For this
one, put a file names smtproutes in /var/qmail/control that contains

:smart.host.name

Jim Lippard       [EMAIL PROTECTED]       http://www.discord.org/
Unsolicited bulk email charge:   $500/message.   Don't send me any.
PGP Fingerprint: 0C1F FE18 D311 1792 5EA8  43C8 7AD2 B485 DE75 841C





Hi!!

I'm having some trouble with tcpserver. I'm trying to use relaying, 
and I already have a process running with the following parameters:

qmaild  3464   238  0 23:33:43 ?        0:00 tcpserver -H -R -v -
x/etc/tcp.smtp.cdb -u101 -g100 0 25 rblsmtpd /var/qmail/bin 

and also a file, which I compiled with tcprules in /etc/tcp.smtp and 
tcp.smtp.db with this contents:
# cat /etc/tcp.smtp
200.20.10.:allow,RELAYCLIENT=""
200.43.4.:allow,RELAYCLIENT=""
:allow    

Where 200.20.10.X is a local private network and 200.43.4.X is my 
C class of internet. 
The problem I'm having is that telnetting from the same mail server 
to port 25 it says it can't relay :
553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) 

But I'm supposed to be an allowed client to relay....I'm on that list

What should I do?.

Thanks!
     
Best regards,

Martin Paulucci
http://www.ServiRED.COM
[EMAIL PROTECTED]
Cell Phone: 15-4935-4246
VoiceMail/Fax: (+54-11)4-961-3204




On Sun, 5 Sep 1999, Martin Paulucci wrote:

> Hi!!
> 
> I'm having some trouble with tcpserver. I'm trying to use relaying, 
> and I already have a process running with the following parameters:
> 
> qmaild  3464   238  0 23:33:43 ?        0:00 tcpserver -H -R -v -
> x/etc/tcp.smtp.cdb -u101 -g100 0 25 rblsmtpd /var/qmail/bin 
> 
> and also a file, which I compiled with tcprules in /etc/tcp.smtp and 
> tcp.smtp.db with this contents:
> # cat /etc/tcp.smtp
> 200.20.10.:allow,RELAYCLIENT=""
> 200.43.4.:allow,RELAYCLIENT=""
> :allow    
> 
> Where 200.20.10.X is a local private network and 200.43.4.X is my 
> C class of internet. 
> The problem I'm having is that telnetting from the same mail server 
> to port 25 it says it can't relay :
> 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) 

That's because 127.0.0.1 is not specified as an IP address that is allowed
to relay.  If you're telnetting to localhost, you're coming from the
127.0.0.0/8 network.






At 08:37 PM 9/4/99 -0400, you wrote:
>Is there a way to have in.telnetd present the client with a different
>shell than the default shell (bash) listed in the /etc/login.defs file?
>The man page says you can have a different login program specified at
>the command line for in.telnetd. Would it be a hassle to recompile a
>version of login to change the .defs file? Where is the source code of
>login?

Joel, just so you know, my system was compromised by a pissant hacker from
the following location: 134.96.59.1 (which is a proxy machine located in
the .de domain which is either germany or denmark)...the exploit occurred
because an attempt was made at telnetting into the box (telnet access is
now closed, and commented out in /etc/inetd.conf and /etc/services)...I
strongly advise against using telnet even with tcpwrappers...it took me
the better part of 1.5 hours to get my system back to normal usage,
damage done was to /etc/passwd and qmail v1.03...

I would like to know how something like this could happen, would the
problem have been caused by a rapid fire type of attack, and if so,
what can be done to counter such stupidity (I don't think notifying
the site admin will be of much good, but i'm not sure about this)?

-Bill

p.s. - I got good help by Ken Jones at inter7 to get my system back up
and running, but this should serve as warning not to use telnet in any
way shape or form...<sigh>






I'm using Red Hat Mandrake 6.0, and I've gone through the Adam McKenna
steps (http://www.flounder.net/qmail/qmail-howto.html) for installing
qmail.  Before this qmail installation, I was able to use sendmail just
fine, except I had problems getting the virtual email setup to work, so
I've decided to use qmail.

Now, after having gone through the installation steps, qmail was running on
my system, until I rebooted.  I thought I had placed the proper script in
the proper startup file, but I guess I haven't.  But for starters, I don't
know how to even START qmail manually.  I tried going into the qmail
install directory and typed:

qmail start

but I got this error: bash: qmail: command not found

So then I went to the /var/qmail/bin directory, but got the same error.
How do I get qmail to start again?  It was running before I rebooted.

I'll also mention that I couldn't get the step for rblsmtpd
(http://www.flounder.net/qmail/qmail-howto.html#10b) to work.. the
"setuser" was a command that my system didn't understand.  Could this cause
a problem?

Thanks for any help.
james




>>> James had the thought that... <<<

> Now, after having gone through the installation steps, qmail was running on
> my system, until I rebooted.  I thought I had placed the proper script in
> the proper startup file, but I guess I haven't.  But for starters, I don't
> know how to even START qmail manually.  I tried going into the qmail
> install directory and typed:
> 
> qmail start

Well, if you did indeed put the startup scripts in the right place you
would want to do this:

/etc/rc.d/init.d/qmail start
(at least on redhat systems)

> but I got this error: bash: qmail: command not found

Which would make sense if you were in /usr/local/src/qmail or
whatever since the startup scripts don't live there.

> So then I went to the /var/qmail/bin directory, but got the same error.
> How do I get qmail to start again?  It was running before I rebooted.
> 
> I'll also mention that I couldn't get the step for rblsmtpd
> (http://www.flounder.net/qmail/qmail-howto.html#10b) to work.. the
> "setuser" was a command that my system didn't understand.  Could this cause
> a problem?

Well, it looks like you got daemontool 6 where setuser was replaced
with setguid and other oddities.  I got bitten by that as well.  As
has been mentioned a couple of times, most of the HOWTOs haven't
caught up to the newest daemontools.

You might want to consult the nifty Life with Qmail and see if that
helps out any:
http://web.infoave.net/~dsill/lwq.html

Pat

-- 
Patrick Berry  ---  Code Creation  ---  Freestyle Interactive  ---  415.778.0610
                                             http://www.freestyleinteractive.com




At 09:14 PM 9/5/99 Pat wrote:
>Well, it looks like you got daemontool 6 where setuser was replaced
>with setguid and other oddities.  I got bitten by that as well.  As
>has been mentioned a couple of times, most of the HOWTOs haven't
>caught up to the newest daemontools.
>You might want to consult the nifty Life with Qmail and see if that
>helps out any:
>http://web.infoave.net/~dsill/lwq.html

In the life with qmail, his qmail script also has "setuser".. if I replace
all setuser's with "setguid" will this fix my problem?  I went to the
correct directory this time to start qmail, and it tried to start, but it
hit the line in the script "setuser" and quit.  I'll go and change all the
"setuser" text I can find.

james




>In the life with qmail, his qmail script also has "setuser".. if I replace
>all setuser's with "setguid" will this fix my problem?

Well, that didn't fix it.. I get this error now:
./qmail: setguid: command not found

Is there anything else I can try?

james




On Sun, 5 Sep 1999, James wrote:

> >In the life with qmail, his qmail script also has "setuser".. if I replace
> >all setuser's with "setguid" will this fix my problem?
> 
> Well, that didn't fix it.. I get this error now:
> ./qmail: setguid: command not found
> 
> Is there anything else I can try?


I would try to install daemontools, as the HOWTO, and lwq advises.
The daemontools package includes setuser or setguid, depending on
version of daemontools.

http://pobox.com/~djb/daemontools.html

-- 
magnus
        -- MOST useless 1998 * http://x42.com/





At 07:09 AM 9/6/99 magnus wrote:
>I would try to install daemontools, as the HOWTO, and lwq advises.
>The daemontools package includes setuser or setguid, depending on
>version of daemontools.

I have already installed daemontools, and checked it with:
     date | ./tai64n | ./tai64nlocal
     date | sh -c './multilog t e 2>&1' | ./tai64nlocal

and my output was:
1999-09-05 22:23:21.323922500 Sun Sep  5 22:23:21 PDT 1999
1999-09-05 22:26:13.056125500 Sun Sep  5 22:26:13 PDT 1999

I notice that in my /usr/local/bin directory, I don't see setguid, but I do
see a setuidgid.  Should there be a setguid in that directory?

james




Try "setuidgid", not "setguid".

Jim Lippard       [EMAIL PROTECTED]       http://www.discord.org/
Unsolicited bulk email charge:   $500/message.   Don't send me any.
PGP Fingerprint: 0C1F FE18 D311 1792 5EA8  43C8 7AD2 B485 DE75 841C

On Mon, 6 Sep 1999, Magnus Bodin wrote:

> On Sun, 5 Sep 1999, James wrote:
> 
> > >In the life with qmail, his qmail script also has "setuser".. if I replace
> > >all setuser's with "setguid" will this fix my problem?
> > 
> > Well, that didn't fix it.. I get this error now:
> > ./qmail: setguid: command not found
> > 
> > Is there anything else I can try?
> 
> 
> I would try to install daemontools, as the HOWTO, and lwq advises.
> The daemontools package includes setuser or setguid, depending on
> version of daemontools.
> 
> http://pobox.com/~djb/daemontools.html
> 
> -- 
> magnus
>         -- MOST useless 1998 * http://x42.com/
> 
> 






On Sun, Sep 05, 1999 at 10:27:03PM +0100, James wrote:
> At 07:09 AM 9/6/99 magnus wrote:
> >I would try to install daemontools, as the HOWTO, and lwq advises.
> >The daemontools package includes setuser or setguid, depending on
> >version of daemontools.
> 
> I have already installed daemontools, and checked it with:
> [...]
> 
> I notice that in my /usr/local/bin directory, I don't see setguid, but I do
> see a setuidgid.  Should there be a setguid in that directory?

Sorry. I should have written setuidgid.

Either download the OLD version of daemontools and use the instructions in
HOWTO and/or life with qmail, or "reread" the documentation with the changes
mentioned here in mind:

http://qmail.x42.com/koobera/www/daemontools/upgrade.html

(my qmail.org-mirror, couldn't get hold of djb:s site at the time)

-- 
magnus
        -- MOST useless 1998 * http://x42.com/




At 10:24 PM 9/5/99 Jim Lippard wrote:
>Try "setuidgid", not "setguid".

Ok.. that worked, but it opened up a whole host of other errors.. so back
to work I go.

james




Ok.. now I have tried to clean up as much as possible, and I have to issue
this command to start qmail:

./qmail start

and when I do, I get this:

Starting qmail: qmail-sendsupervise: usage: supervise dir
 qmail-smtpdsupervise: usage: supervise dir
.    

Does this mean I am getting a supervise error or something?  Or are things
sort of working ok?

james




Hi,

Is it possible to configure a qmail server to receive and store email for
POP3 retrieval for some virtual domains, and also have it act as a gateway
which simply forwards e-mails for other virtual domains to servers within a
connected internal network.(all domains have MX record pointing to the qmail
server)??

Can this be achieved through a combination of the smtp-routes and virtual
domain settings on the qmail server? If so could it please be outlined as we
are looking at possibly using qmail for this.

Many thanks

Mark Parker




Hi again.

Have been attempting to configure the qmail server to perform sections of
the functionality I mentioned in my previous email. However I am receiving
an error when the qmail server attempts to forward the mail to another
server. 

The error contains the phrase "Unable_to_Read_Control_Files"

Does anyone now if I have made a fundamental error in my configuration which
would result in this and a possible solution.

Thanks again.

Mark Parker


Reply via email to