qmail Digest 25 Apr 1999 10:00:01 -0000 Issue 621
Topics (messages 24682 through 24699):
stupid question...
24682 by: "Oden Eriksson" <[EMAIL PROTECTED]>
24685 by: Chris Johnson <[EMAIL PROTECTED]>
24692 by: "Scott Ellis" <[EMAIL PROTECTED]>
script to check if all mails were sent?
24683 by: [EMAIL PROTECTED]
pine on remote server
24684 by: "Duncan, Eric A." <[EMAIL PROTECTED]>
qmail-popup . Help me please
24686 by: ivan <[EMAIL PROTECTED]>
old popdeamons don't do ~user/Mailbox
24687 by: [EMAIL PROTECTED]
Qmail and trailing spaces
24688 by: Bruno Wolff III <[EMAIL PROTECTED]>
24689 by: Greg Haverkamp <[EMAIL PROTECTED]>
virtualdomains question
24690 by: olli <[EMAIL PROTECTED]>
virtualdomains question (theoretical)
24691 by: olli <[EMAIL PROTECTED]>
ezmlm + mail2html ?
24693 by: "Oden Eriksson" <[EMAIL PROTECTED]>
/var/qmail/queue?
24694 by: John Conover <[EMAIL PROTECTED]>
maildir->html
24695 by: "Attila Csosz" <[EMAIL PROTECTED]>
24696 by: Scott Schwartz <[EMAIL PROTECTED]>
24697 by: Bruno Wolff III <[EMAIL PROTECTED]>
Default address
24698 by: "Steve Berg" <[EMAIL PROTECTED]>
24699 by: Russell Nelson <[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]
----------------------------------------------------------------------
Hi there all,
My Name is Oden and I'm new to this list and a Linux newbie, but
I'm very enthusiastic!.
I have run a small web hotel (more of a "private" solution) for
months now using Linux Mandrake v5.3 (RedHat v5.2 + KDE v1.1)
+ Summersoft's "qmail-1.03-7.src.rpm" + "qmail-imap-4.5.beta-
2.src.rpm". Everything's running just fine but... I have an open
relay... I got a e-mail from "The Open Relay Behaviour-modification
System <[EMAIL PROTECTED]>" telling me someone may have used
my server for spamming or something... My server was added to
the "ORBS database" (what in the hell ever that is...).
I've seen many posts about the Open Relay thing, but I guess I'm
just too stupid to understand... I just cannot figure out a way to let
my users use the smtp server without beeing an "open relay".
My users are all having dial up connections with dynamic ip
addresses. I have no dial in feature.
The solutions I've seen so far on this list (and in the archive) is
either _very_ complex or they won't cut it in the long run. What to
do ?
Why can't it just be like the pop thing..., you are required to pass a
password to access the thing...
I have tried using the rcpthosts file but soon realized that I had to
add every damn domain my users would send an e-mail to, to this
file. This I will _never_ do..., it's too much work.
I guess my problem is that I'm not native speaking English. This
added to the fact I'm a Linux newbie and a _non_ coder makes it
_very_ hard to understand those short and cryptic man pages. The
help pages and howto's I've seen on the net isn't any better either...
I switched from the standard "Sendmail" package to "qmail"
because I thought it would be easier to understand, administer and
maintain...
Also I'm awaiting the new O'Reilly book about qmail... when will it
be finished ? I set my hopes to this book, I hope it will enlighten
me and others.
Well, this became a long post..., I hope someone in the same
situation as me could help me. Preferrably a Swedish person :)
BTW. I'm very impressed that some people seem to have 30000+ e-
mail users on their standard Linux boxes, very impressive!.
Thanks in advance
--
Kindest Regards//Oden L. Eriksson CNE+MCSE
UIN: 952113
On Sat, Apr 24, 1999 at 12:32:18PM +0200, Oden Eriksson wrote:
> Hi there all,
>
> My Name is Oden and I'm new to this list and a Linux newbie, but
> I'm very enthusiastic!.
>
> I have run a small web hotel (more of a "private" solution) for
> months now using Linux Mandrake v5.3 (RedHat v5.2 + KDE v1.1)
> + Summersoft's "qmail-1.03-7.src.rpm" + "qmail-imap-4.5.beta-
> 2.src.rpm". Everything's running just fine but... I have an open
> relay... I got a e-mail from "The Open Relay Behaviour-modification
> System <[EMAIL PROTECTED]>" telling me someone may have used
> my server for spamming or something... My server was added to
> the "ORBS database" (what in the hell ever that is...).
>
> I've seen many posts about the Open Relay thing, but I guess I'm
> just too stupid to understand... I just cannot figure out a way to let
> my users use the smtp server without beeing an "open relay".
You might want to read a thing I wrote called "The qmail newbie's guide to
relaying," at http://www.palomine.net/qmail/relaying.html. It should answer
most of your questions.
Chris
I recommend you give http://www.nimh.org/hacks/qmail-smtpd.c a try. I
wasn't particularly fond of the checkpasswd stuff in there, but it's simple
enough to code around (there were also a few typos, which I keep meaning to
report back to the author...bad Scott..bad!).
Anyhow, it allows Outlook and Netscape users (or any other MUA that
understands SMTP-Auth) to send mail through your site, without you having to
be an open relay. Seems to work fine here, might work for you too. This
way you don't need to use tcpserver, or jump through any of the other hoops
that are usually necessary.
Scott
----- Original Message -----
From: Oden Eriksson <[EMAIL PROTECTED]>
>
> I've seen many posts about the Open Relay thing, but I guess I'm
> just too stupid to understand... I just cannot figure out a way to let
> my users use the smtp server without beeing an "open relay".
>
> My users are all having dial up connections with dynamic ip
> addresses. I have no dial in feature.
Hallo,
I'm trying to write a script that dials up my ISP, establishes a connection
and then sends and fetches mail. The interesting part of the skript looks as
follows:
[...]
if test -f /var/run/pppd.pid then
/usr/bin/echo "pppd running"
/usr/bin/echo "alarming qmail to send mail"
/usr/bin/killall -ALRM qmail-send
# once online, the bandwidth should be used :_)
/usr/bin/echo "wwwoffle set to online and fetching"
/usr/local/bin/wwwoffle -online
/usr/local/bin/wwwoffle -fetch &
/usr/bin/echo "fetching mail:"
/usr/bin/fetchmail
/usr/bin/echo "setting wwwoffle to offline"
/usr/local/bin/wwwoffle -offline &
##
## somehow check if all mails have been sent
##
/usr/bin/echo "closing connection"
/etc/ppp/ppp-off
/usr/bin/echo "connection closed"
fi
The script will be started from the crontab of root. How can I check if all
mails have been sent? Would a
while ! /var/qmail/bin/qmail-qstat | grep -q "messages in queue: 0"; do
sleep 3;
done
be reliable enough and do the job? I'm not good in script programming ...
Another, more general question: How can I make absolutely sure that the
connection will be closed after some time and the line hung up? I'm afraid
that in the worst case the line might be kept up for one or three days,
tremendously increasing my telephone bill.
GH
Bob,
I wanted to do this as well because I had a prefix before each user's login:
domain/username
Unfortunately Pine does not support the read of $VARs from the environment
in its configuration files (plus the use of the forward slash in the config
threw off Pine anyhow). Also Pine's POP3 handling really disappointed me.
I looked for alternatives and found Mutt. I'll never use Pine again. Yes
pine is still on my system, but only as a symbolic link to mutt. :) This
has the same Menu-driven interface as Pine but far more advanced (and in
color!). Plus it works directly with Maildir. Its POP3 handling is awesome
as it actually allows you to store mail folders locally and keep the pop3
session open. Even checking for new mail every 1 minutes or so (Pine can
not do that with POP3).
Try it out.
http://www.mutt.org
Eric
[EMAIL PROTECTED]
-----Original Message-----
From: Brad [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 24, 1999 12:57 AM
To: [EMAIL PROTECTED]
Subject: pine on remote server
We have a dedicated shell/users server so people can log in
and grab mail, etc.
We also have a dedicated pop3 and smtp server running qmail.
I would like to be able to configure pine on the shell
server to use the pop3 and smtp servers running qmail.. but
am having a problem with the "from" line...
Example:
Running pine 4.10 on Slackware 3.6.
log on shell as username: bigbob
run pine
prompts for username on pop3 server (defaults to bigbob)
press enter, all is good.. BUT!
If I enter a _different_ pop3 username _while_ logged onto
the shell server as bigbob, the return/from line is always
bigbob and not what the user entered for the pop3 username.
Any ideas?
Thanks,
Brad
Americanisp, LLC.
hi,
I don't know from where to begin ?
I even rewriten the checkpassword (Perl, based on auth against Radius server
but with stripped Radius part).
SO, I get the ".............. $HOME/Maildir" error.
If I substitute the "Maildir" in /etc/rc.d/init.d/qmail-pop3d.init with the real
directory all is working fine, but the problem is that the dir must be different
for every user that initiates POP connection, but I know his name only when
the "tcpserver" executes "qmail-popup" i.e. impossible to be included in
qmail-pop3d.init.
The other tries I've made :
with my changed script all is working fine if I execute it directly from
console i.e. :
[root]# qmail-popup myhostname passpass
or
[root]# qmail-popup myhostname passpass qmail-pop3d
or
[root]# qmail-popup myhostname passpass qmail-pop3d /mail/digicom-bg/xxx
no matter (passpass is my variant of checkpassword) . but when the script is
executed from "tcpserver" i.e. :
[root]# telnet localhost 110
....
mostly I get ... "Connection closed by foreign host". And as it seems
"passpass" is never executed (I have at the begining of the script writing to
a test file, but nothing is written in it if passpass is executed via network
i.e. passpass is not started but can track why) I can't use checkpassword 'cause
I'm with shadow.
Please help me I'm insane here, I know I'm missing something subtle.
PS. Ooops another thing, when I start /etc/rc.d/init.d/qmail-pop3d.init start
I get :
hard error
Starting qmail-pop3d .... done.
and it is really started, when I make "telnet localhost 110" qmail-popup is
invoked normaily, but after that "Connection closed by foregn host"..
=====
[EMAIL PROTECTED]
=====
On Fri, 23 Apr 1999, Dave Sill wrote:
> [EMAIL PROTECTED] wrote:
> >
> >BTW, I wondered why qmail is not compliant to fsstnd?
>
> Because qmail runs on many platforms, not just Linux, and because Dan
> does things His Way. However, His Way, in this case, is flexible
> enough to be made nearly fsstnd compliant.
Is the filetree organized that much different on different Unices?
> Before installing, do:
>
> # mkdir /var/qmail /etc/qmail
> # ln -s /etc/qmail /var/qmail/control
Thanks, but it's too late ;_) I'll move qmail to the appropriate locations
and create the links afterwards.
> >The ~/.qmail files I'd suggest to put into ~/etc/qmail, rather than
> >hiding them among the lots of various other `dotfiles' that you encounter in
> >users' homes.
>
> I can't agree with you there. They belong in the user's home
> directory.
Yes, that was meant to be an `etc' directory in the users directory. I
prefer not to have files other than directories in my home whenever
possible, for personal taste and because it's easyer to backup a directory
than having to select each file individually. (Of course I'd backup the
whole /home tree, but I'll have to buy a new streamer before I can do so.)
> >Is there good reason to place more or less static files --- not to mention
> >an application specific hierarchy that could even be put into /opt/qmail
> >(except for the queue) --- under /var?
>
> Dan puts everying under /var because it's all potentially
> system-specific. Even the binaries, since have UID's/GID's compiled
> into them.
That much system-specific, shouldn't they be put to /usr/local? (/opt won't
be good place then ...)
GH
On Fri, Apr 23, 1999 at 11:55:13AM -0500,
Fred Lindberg <[EMAIL PROTECTED]> wrote:
> On Fri, 23 Apr 1999 16:40:44 GMT, Sam wrote:
>
> >Actually, what Qmail should do is to reject that address as a recipient
> >address up front, telling the luser to fix it.
>
> Outlook express talks SMTP to qmail. It should _send_ correctly. IMHO,
> code to check syntax is wasted in qmail, unless required for function.
> In this case, all that would result is a [maybe] easier-to-interpret
> error message.
Most likely this is happening because the address is being passed as
command arguments to qmail-inject. That argument is a raw address so
it is pretty much anything goes. The address will get encoded for use
in the smtp protocol by qmail.
Sendmail doesn't work like this. Sendmail treats addresses on the command
line as encoded and will attempt to decode them. I had some problems with
mutt and addresses that were quoted because of this difference.
I think qmail's way is better, but a lot of MUA's are written to use sendmail
to inject messages.
On Sat, Apr 24, 1999 at 11:28:38AM -0500, Bruno Wolff III wrote:
> On Fri, Apr 23, 1999 at 11:55:13AM -0500,
> Fred Lindberg <[EMAIL PROTECTED]> wrote:
> > On Fri, 23 Apr 1999 16:40:44 GMT, Sam wrote:
> >
> > >Actually, what Qmail should do is to reject that address as a recipient
> > >address up front, telling the luser to fix it.
> >
> > Outlook express talks SMTP to qmail. It should _send_ correctly. IMHO,
> > code to check syntax is wasted in qmail, unless required for function.
> > In this case, all that would result is a [maybe] easier-to-interpret
> > error message.
>
> Most likely this is happening because the address is being passed as
> command arguments to qmail-inject. That argument is a raw address so
> it is pretty much anything goes. The address will get encoded for use
> in the smtp protocol by qmail.
No. The problem is with Outlook Express (and with Outlook, for that matter.)
Everytime I've seen it, it's been from addresses Outlook (Express) has
harvested from received messages. It tacks either control characters
or spaces on the end. So, basically, qmail-smtpd (these programs are
Microsoft programs; they know nothing about qmail-inject or the Unix
command-line) receives an address that looks like <[EMAIL PROTECTED] >
The solution is straightforward. Go into the addressbook, select the entire
block, delete it, and retype it. Problem goes away.
Qmail shouldn't be doing anything to distort what the client tells it it
wants, IMO.
> Sendmail doesn't work like this. Sendmail treats addresses on the command
> line as encoded and will attempt to decode them. I had some problems with
> mutt and addresses that were quoted because of this difference.
Again, not the issue.
Greg
On Sat, 24 Apr 1999, Giulio Orsero wrote:
> >>>Well, can I use a domain name as a second part? As example:
> >>>foo.com:foo1.com
> >>>Will then qmail send mail to [EMAIL PROTECTED] to [EMAIL PROTECTED] ?
> >>No, try this instead:
> >>virtualdomains:
> >>foo.com:alias-foo
> >>~alias/.qmail-foo-default
> >>|forward $[EMAIL PROTECTED]
Thanx. I'll do it. Right now I got loopes w/ somth. like this,but I hope
fix this in the nearest future.:)
> >Actually, it might just be a whole lot easier to go in to the qmail user's
> >directory, and edit the .qmail file to say "&[EMAIL PROTECTED]"
> I thought he wanted to do this for every user at foo.com, and that "bob" was
> just an example; so it would be quite time consuming to edit every user's
> .qmail file :-)
yes.that was "just an example".:)
Actualy I use non-existent in the dns domain at our home LAN. There are 3
PCs in the LAN & we connect to the internet via dialup to my server at
work. The connection could be open from 2 mashines - my or my friend.
1st time I had idea to redirect the mail to my_fake_domain.ru to the same
user on my server - that was why I asked about domain redirection.
Now I wanna make better thing - just make mail work to the both ends.
I add the following to the smtproutes:
my_fake_domain.ru:192.168.4.120
So the bounces are returned to the sender on the fake_domain,not to me.
But anyhow user on the my_fake_domain.ru have to be masqueraded as a user
of my server or some hosts will return bounces like "sender domain must
exist" .
Bye.Olli.
On Sat, 24 Apr 1999, Giulio Orsero wrote:
> >>>Will then qmail send mail to [EMAIL PROTECTED] to [EMAIL PROTECTED] ?
> >>No, try this instead:
> >>virtualdomains:
> >>foo.com:alias-foo
> >>~alias/.qmail-foo-default
> >>|forward $[EMAIL PROTECTED]
Next question follows:
virtualdomains:
home.foo.com:foo
home1.foo.com:foo1
~alias/.qmail-foo-default:
|forward $[EMAIL PROTECTED]
~alias/.qmail-foo1-default:
|forward $[EMAIL PROTECTED]
what to do if I wanna send mail to home1 only if it owns connection? The
connection can be made by home & home1 , both using qmail as an MTA & both
relays to each other. But I don't wanna to allow "home" receive mail for
"home1" in couse it could be logged.
The simplest solution is making connection from home1 with another IP addr ,
so the question is mostly theoretical - is there any solution to send mail to
"home1" only if "home1" sits on the other end , not "home" ?
Bye.Olli.
Hi there,
I wonder what software to use to have a qmail mailing list indexed
online in html format ?
--
Kindest Regards//Oden L. Eriksson CNE+MCSE
UIN: 952113
How do you reconstruct /var/qmail/queue from a head crash? Will
qmail automagically recreate the directory tree?
John
BTW, just worried.
--
John Conover, 631 Lamont Ct., Campbell, CA., 95008, USA.
VOX 408.370.2688, FAX 408.379.9602, whois '!JC154'
[EMAIL PROTECTED], http://www2.inow.com/~conover/john.html
Is there any program that can convert my maildirs( folders containing the
cur,tmp,new directorys ) to html pages?
Thanks
Attila
RedHat 5.2
"Attila Csosz" <[EMAIL PROTECTED]> writes:
| Is there any program that can convert my maildirs( folders containing the
| cur,tmp,new directorys ) to html pages?
How about "cat"?
On Sat, Apr 24, 1999 at 10:16:23PM +0200,
Attila Csosz <[EMAIL PROTECTED]> wrote:
> Is there any program that can convert my maildirs( folders containing the
> cur,tmp,new directorys ) to html pages?
>
mhonarc will do reasonable html markup of email messages. It uses its own
database so you would be duplicating the archives, but it should work.
If the ~alias user directory has a .qmail-default file pointing to a
mail address will qmail never generate a bounce message for no such
user?
Stephen Berg
//- USAF Instructor -/- Reluctant NT User -/- Web Designer -//
//- [EMAIL PROTECTED] // http://iceberg.3c0x1.com/ -//
Steve Berg writes:
> If the ~alias user directory has a .qmail-default file pointing to a
> mail address will qmail never generate a bounce message for no such
> user?
You are correct.
--
-russ nelson <[EMAIL PROTECTED]> http://crynwr.com/~nelson
Crynwr supports Open Source(tm) Software| PGPok | There is good evidence
521 Pleasant Valley Rd. | +1 315 268 1925 voice | that freedom is the
Potsdam, NY 13676-3213 | +1 315 268 9201 FAX | cause of world peace.