On Thu, Apr 26, 2001 at 05:54:20AM +0200, Marco Calistri wrote:
> On 25-Apr-2001 Tim Legant wrote:
> > 1. Do you want your email address to be [EMAIL PROTECTED]?
>  
> Yes that's my "official INTERNET address"
> 
> > 2. Can you receive mail at [EMAIL PROTECTED]?
>  
> Yes I can if I avoid to touch my qmail/fetchmail config. files ;)
> 
> > 3. Do the SMTP servers at tin.it forward your mail to you? Or do you use
> >    POP to retrieve it (with getmail or fetchmail or even your client?)
> 
> I'm using fetchmail that poll tin.it via POP3,then fetchmail passes
> mail to qmail (now via tcp port 25 SMTP)
> 
> > 4. Is your network really in the ampr.org domain?
> 
> That network is not reachable directly from INTERNET but
> only via AMPRNET by gateways and ip/ip encap mechanism
> for the amateur radio network.
> (permissions are not granted in ITALY to use amprnet address on INTERNET)
> 
> I have 2 regular domain registerd on ucsd.edu:
> ik5bcu.ampr.org and sys2.ik5bcu.ampr.org.
> 
> > 5. Do you actually have the following, individual machines on your network?
> > 
> >    a. ik5bcu.ampr.org
> >    b. linux.ik5bcu.ampr.org
>  
> Yes,on "b" I have qmail and fetchmail and this is not
> a FQDN, while "a" is LAN connected.

Ok. Let's start simple and work our way up. First, let's get your
"official Internet address" working. I know that you have a LAN; I
believe you mentioned before that your private IP addresses are in the
192.168.2.xxx block. For now, we're going to ignore them.

You say machine (b), above, has qmail. I assume that machine (b) is
connected to the Internet and that machine (a) is connected to machine
(b) through your local network.

One of the problems we have to solve is that your mail comes to 'tin.it'
but that is not your home domain. When you retrieve mail using fetchmail
and feed that mail into qmail-smtpd, you complicate things for yourself.

I recommend the following:

1. For now, do NOT run qmail-smtpd. If you are using DJB's daemontools
   (supervise, etc) to run qmail-smtpd, type the following as root:

cd /service/qmail-smtpd
rm /service/qmail-smtpd
svc -dx . ./log

   NOTE: I don't know what you called your 'qmail-smtpd' link in /service.
         Use that name instead of 'qmail-smtpd' if it's different.

2. Use Charles Cazabon's getmail program

http://www.qcc.sk.ca/~charlesc/software/getmail-2.0/getmail.html

   instead of fetchmail. getmail won't let you send your mail to an SMTP
   server like qmail-smtpd. It will deliver it directly into your mailbox.
   In your situation, that's the simplest and it's what you want.

3. In the /var/qmail/control/ directory you should have this file:

me

   For now, delete all the rest. You don't need them yet or maybe at
   all.

4. In your /var/qmail/control/me file you should have this line:

linux.ik5bcu.ampr.org

   After you remove all the files but 'me', type the following as root:

svc -t /service/qmail-send

Now, a ps waux | grep qmail should show you something like this:

root     217  0.0  0.4   Mon01PM   0:00.26 supervise qmail-send
qmaill   230  0.0  0.4   Mon01PM   0:02.03 /usr/local/bin/multilog t /var/log/qmail
qmails  1043  0.0  0.7   Mon03PM   0:07.97 qmail-send
root    1045  0.0  0.5   Mon03PM   0:01.71 qmail-lspawn ./Maildir/
qmailr  1046  0.0  0.6   Mon03PM   0:00.16 qmail-rspawn
qmailq  1047  0.0  0.6   Mon03PM   0:01.30 qmail-clean

At this point, qmail will not /accept/ any mail from the outside world but
it is capable of /sending/ your mail to the outside world. You should be
using getmail to retrieve all of your tin.it mail and deliver it
directly to your mailbox with no qmail involved.
-----
Now you need to configure your system and your local email client (XFMail, if I recall
correctly) so that you can send mail using qmail-inject and still have
the 'From:' header look like you want.

1. In your '.profile', the same one where you set the QMAILMFTFILE, set
   the following variables:

export QMAILSUSER=ik5bcu
export QMAILSHOST=tin.it

2. In XFMail, you should be able to set your From address. Set it to
   whatever you like, something like:

Marco Calistri <[EMAIL PROTECTED]>

   Note that this From: header and the QMAILSUSER and QMAILSHOST
   variables that we set in client step 1 refer to completely 
   different things. This one is the address people will reply to. The
   one in the QMAILSxxx variables is called the "envelope sender". When
   qmail sends mail to other SMTP servers, it tells them that the mail
   is being sent by $QMAILSUSER@$QMAILSHOST. You don't really care, as
   long as it's valid.

3. Finally, configure XFMail to use /var/qmail/bin/sendmail to send your
   mail, rather than SMTP. This will end up calling qmail-inject which
   will use the list of mailing lists in $QMAILMFTFILE to create the
   Mail-Followup-To: header.


Once this is successfully running and you can join all the lists you
want and you can post to all the lists, we can talk about other
questions, such as allowing all the machines on your LAN to send mail.

Good luck,

Tim

Reply via email to