Re: [vchkpw] Re: vpopmail does not like my 2nd domain

2003-07-17 Thread Peter Palmreuther
Hi Matthias,

First: sorry for a mistake in my last mail, the 'egrep' command should
have been executed on '/var/qmail/users/assign', but somthing went wrong
with copy/paste.

On Wed, 16 Jul 2003 21:09:57 +0200 Matthias F. Brandstetter wrote:

 Jep, both domains have their home dirs under /home/vpopmail.
 I added these two domains with ~vpopmail/bin/vadddomain. It should
 add all necessary entries into all necessary config files,
 shouldn't it?
 
 Update: I tried to delete my orig. domain (mx2.ebox.at) from vpopmails 
 DB, now I get the following error when sending a mail to 
 [EMAIL PROTECTED]:
 
 =
- The following addresses had permanent fatal errors -
 [EMAIL PROTECTED]
 (reason: 553 sorry, that domain isn't in my list of allowed 
 rcpthosts (#5.7.1))
 =
 
 But: I *have* it in my rcpthosts file:
 
 =
 [EMAIL PROTECTED]:/var/qmail/control# cat rcpthosts
 mailtest.reinprecht.at
 =

I first thought I might have one or two ideas on what goes wrong, but
thinking about them I ended up with: this is nonsense.

So it's debugging time. You have set up / done something _REALLY_
wicked. I don't know what yet, but it must be something from the outer
limit :-)
Therefore your have to do _real_ debugging right know:

- figure qmail-smtpd PID (i.e.: figure the PID of 'tcpserver' or 'inetd'
  process that is bound to port 25)
- attach 'strace' (I'm assuming you're running Linux; if you're on *BSD
  use 'truss') to this process:

  strace -tf -o /tmp/qmail-smtpd.log -s 4096 -p $PID_of_QMAIL_SMTPD

- send a mail to '[EMAIL PROTECTED]'
- after the mail has bounces kill the 'strace'.
- post the file '/tmp/qmail-smtpd.log', compress before attaching it to
  a mail, send via PM if passwords might occur in the file (e.g. due to
  SMTP-AUTH used).
  Of course you can have a look at the file yourself and if your think
  you figured the cause of your problem you can drop a note about this
  in the message with attached file and present your theory, for us
  being able to confirm or decline. But _PLEASE_: don't alter the
  content of the file. Don't strip something out, don't anonymize.

 Do I have to insert this domain into another config file as well, so 
 that qmail accepts it?

'rcpthosts' should be enough for the first acceptance, the error
message you presented indicates the domain ain't found there.
If it were and only delivery would fail the error you get back would
be a different one.
-- 
Ciao,
 Pit



Re: [vchkpw] Re: vpopmail does not like my 2nd domain

2003-07-17 Thread Matthias F. Brandstetter
-- quoting Peter Palmreuther --
 So it's debugging time. You have set up / done something _REALLY_
 wicked. I don't know what yet, but it must be something from the
 outer limit :-)
 Therefore your have to do _real_ debugging right know:

 - figure qmail-smtpd PID (i.e.: figure the PID of 'tcpserver' or
 'inetd' process that is bound to port 25)
 - attach 'strace' (I'm assuming you're running Linux; if you're on
 *BSD use 'truss') to this process:

   strace -tf -o /tmp/qmail-smtpd.log -s 4096 -p $PID_of_QMAIL_SMTPD

 - send a mail to '[EMAIL PROTECTED]'
 - after the mail has bounces kill the 'strace'.

Ok then, finally I got it ... FINALLY :)

*BIG* thanks to Peter Palmreuther for this great tip with strace. I 
can see in the trace that my mailserver (say: the sender, not the new 
one with this issue) replaced the virtual domain 
mailtest.reinprecht.at with mx2.ebox.at -- I think because of a 
wrong CNAME/MX record in DNS, I will investigate further...

But when I telnet on port 25 to this new qmail server and send a mail 
manually, then everything works fine.

So, thanks again to Peter and all the others who helped me out with 
this! Greetings, Matthias

-- 
Matthias F. Brandstetter [mailto:[EMAIL PROTECTED]
now playing Groove Salad: a nicely chilled plate of ambient beats and 
grooves. [SomaFM]




[vchkpw] Re: vpopmail does not like my 2nd domain

2003-07-16 Thread Peter Palmreuther
Hello Matthias,

On Wednesday, July 16, 2003 at 7:05:58 PM you wrote (at least in
part):

 | qmail-showctl |grep '[vV]irtual'
 =
 virtualdomains:
 Virtual domain: mx2.ebox.at:mx2.ebox.at
 Virtual domain: mailtest.reinprecht.at:mailtest.reinprecht.at
 virtualdomains.lock: I have no idea what this file does.
 =

OK, here I don't see two identically at second level domain entries.
Are you talking about messages to '[EMAIL PROTECTED]' get delivered to
'[EMAIL PROTECTED]' or vice versa? Or is your 'problematic'
domain a different one not listed here?

If the former: what's the output of

egrep '(mx2.ebox.at|mailtest.reinprecht.at)'

If the latter: what happens if you execute

vadddomain -r NEWdomain.at

again? Does the NEWdomain.at now show up in
'/var/qmail/control/virtualdomains'???
Or is there any error message when you try to 'add' the domain again?

 qmail-showctl |grep 'locally.'
 there is no output for 'locally'.

OK. So an accidentally both delivered to the same local can be
excluded.
-- 
Best regards
Peter Palmreuther

God gets boring when you let him have his way.




Re: [vchkpw] Re: vpopmail does not like my 2nd domain

2003-07-16 Thread Matthias F. Brandstetter
-- quoting Peter Palmreuther --
  =
  virtualdomains:
  Virtual domain: mx2.ebox.at:mx2.ebox.at
  Virtual domain: mailtest.reinprecht.at:mailtest.reinprecht.at
  virtualdomains.lock: I have no idea what this file does.
  =
 

 OK, here I don't see two identically at second level domain
 entries. Are you talking about messages to '[EMAIL PROTECTED]' get
 delivered to '[EMAIL PROTECTED]' or vice versa? Or is
 your 'problematic' domain a different one not listed here?

*) If I send a mail to [EMAIL PROTECTED] (which is the FQHN of this 
machine), then it is delivered fine.

*) If I send a mail to [EMAIL PROTECTED], then it is 
delivered to to [EMAIL PROTECTED] account.

*) If I send a mail to [EMAIL PROTECTED] (which is an 
existing vpopmail account for this domain, but not on mx2.ebox.at), 
then I get this error in my logfile (and in my bounce mail):

=
delivery 4: failure: 
Sorry,_no_mailbox_here_by_that_name._vpopmail_(#5.1.1)
=

 If the former: what's the output of

 egrep '(mx2.ebox.at|mailtest.reinprecht.at)'

=
[EMAIL PROTECTED]:/var/qmail/control# /var/qmail/bin/qmail-showctl | egrep 
'(mx2.ebox.at|mailtest.reinprecht.at)'
bouncehost: (Default.) Bounce host name is mx2.ebox.at.
defaulthost: (Default.) Default host name is mx2.ebox.at.
doublebouncehost: (Default.) 2B recipient host: mx2.ebox.at.
envnoathost: (Default.) Presumed domain name is mx2.ebox.at.
helohost: (Default.) SMTP client HELO host name is mx2.ebox.at.
idhost: (Default.) Message-ID host name is mx2.ebox.at.
localiphost: (Default.) Local IP address becomes mx2.ebox.at.
me: My name is mx2.ebox.at.
SMTP clients may send messages to recipients at mx2.ebox.at.
SMTP clients may send messages to recipients at 
mailtest.reinprecht.at.
smtpgreeting: (Default.) SMTP greeting: 220 mx2.ebox.at.
Virtual domain: mx2.ebox.at:mx2.ebox.at
Virtual domain: mailtest.reinprecht.at:mailtest.reinprecht.at
=

 If the latter: what happens if you execute

 vadddomain -r NEWdomain.at

(I replaced NEWdomain.at with mailtest.reinprecht.at, because this 
is my NEWdomain)

=
[EMAIL PROTECTED]:/var/qmail/control# /home/vpopmail/bin/vadddomain -r 
mailtest.reinprecht.at
Error: Domain already exists
=

 again? Does the NEWdomain.at now show up in
 '/var/qmail/control/virtualdomains'???

(again, mailtest.reinprecht.at is now my NEWdomain.at)

=
[EMAIL PROTECTED]:/var/qmail/control# cat /var/qmail/control/virtualdomains
mx2.ebox.at:mx2.ebox.at
mailtest.reinprecht.at:mailtest.reinprecht.at
=

And my /var/qmail/control/locals file is empty.
Is anything wrong with this configuration?

Greetings and thx for your help, Matthias

-- 
Matthias F. Brandstetter [mailto:[EMAIL PROTECTED]
now playing Groove Salad: a nicely chilled plate of ambient beats and 
grooves. [SomaFM]




Re: [vchkpw] Re: vpopmail does not like my 2nd domain

2003-07-16 Thread Tom Collins
What does /var/qmail/users/assign look like?  Could both domains be 
mapped to the same home directory?

Is mail for mx2.ebox.at stored in ~vpopmail/domains/mx2.ebox.at?

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] Re: vpopmail does not like my 2nd domain

2003-07-16 Thread Matthias F. Brandstetter
-- quoting Tom Collins --
 What does /var/qmail/users/assign look like?

=
[EMAIL PROTECTED]:/var/qmail/control# cat /var/qmail/users/assign
+mx2.ebox.at-:mx2.ebox.at:89:89:/home/vpopmail/domains/mx2.ebox.at:-::
+mailtest.reinprecht.at-:mailtest.reinprecht.at:89:89:/home/vpopmail/domains/mailtest.reinprecht.at:-::
.
=

 Could both domains be mapped to the same home directory?
 Is mail for mx2.ebox.at stored in ~vpopmail/domains/mx2.ebox.at?

Jep, both domains have their home dirs under /home/vpopmail.
I added these two domains with ~vpopmail/bin/vadddomain. It should add 
all necessary entries into all necessary config files, shouldn't it?

Greetings, Matthias

-- 
Matthias F. Brandstetter [mailto:[EMAIL PROTECTED]
now playing Groove Salad: a nicely chilled plate of ambient beats and 
grooves. [SomaFM]




Re: [vchkpw] Re: vpopmail does not like my 2nd domain

2003-07-16 Thread Matthias F. Brandstetter
-- quoting Matthias F. Brandstetter --
 Jep, both domains have their home dirs under /home/vpopmail.
 I added these two domains with ~vpopmail/bin/vadddomain. It should
 add all necessary entries into all necessary config files,
 shouldn't it?

Update: I tried to delete my orig. domain (mx2.ebox.at) from vpopmails 
DB, now I get the following error when sending a mail to 
[EMAIL PROTECTED]:

=
   - The following addresses had permanent fatal errors -
[EMAIL PROTECTED]
(reason: 553 sorry, that domain isn't in my list of allowed 
rcpthosts (#5.7.1))
=

But: I *have* it in my rcpthosts file:

=
[EMAIL PROTECTED]:/var/qmail/control# cat rcpthosts
mailtest.reinprecht.at
=

Do I have to insert this domain into another config file as well, so 
that qmail accepts it?

Greetings, Matthias

-- 
Matthias F. Brandstetter [mailto:[EMAIL PROTECTED]
now playing Groove Salad: a nicely chilled plate of ambient beats and 
grooves. [SomaFM]




Re: [vchkpw] Re: vpopmail does not like my 2nd domain

2003-07-16 Thread Rick Macdougall


Matthias F. Brandstetter wrote:

-- quoting Matthias F. Brandstetter --

Jep, both domains have their home dirs under /home/vpopmail.
I added these two domains with ~vpopmail/bin/vadddomain. It should
add all necessary entries into all necessary config files,
shouldn't it?


Update: I tried to delete my orig. domain (mx2.ebox.at) from vpopmails 
DB, now I get the following error when sending a mail to 
[EMAIL PROTECTED]:

=
   - The following addresses had permanent fatal errors -
[EMAIL PROTECTED]
(reason: 553 sorry, that domain isn't in my list of allowed 
rcpthosts (#5.7.1))
=

But: I *have* it in my rcpthosts file:

=
[EMAIL PROTECTED]:/var/qmail/control# cat rcpthosts
mailtest.reinprecht.at
=
Do I have to insert this domain into another config file as well, so 
that qmail accepts it?
Hi,

Did you HUP qmail-send after making manual changes to the config files ?

Regards,

Rick





Re: [vchkpw] Re: vpopmail does not like my 2nd domain

2003-07-16 Thread Matthias F. Brandstetter
-- quoting Rick Macdougall --
 Hi,

 Did you HUP qmail-send after making manual changes to the config
 files ?

Jep, I even tried to reboot my machine -- with no success :(
I really have no idea left. I am searching for this on google the 
whole day now, posting to newsgroups and mailinglist, but nobody 
seems to have an answer (only things which I already have tried).

So long... Matthias

-- 
Matthias F. Brandstetter [mailto:[EMAIL PROTECTED]
now playing Groove Salad: a nicely chilled plate of ambient beats and 
grooves. [SomaFM]