Re[2]: [vchkpw] Redeliver mail to another MTA

2003-02-28 Thread Peter Mikeska
Hello Justin,

Thursday, February 27, 2003, 3:06:07 PM, you wrote:

JH> On Thursday 27 February 2003 13:56, Peter Mikeska wrote:
>> Hi, plz can any1 help me ;))
>> I have local qmail+vpopmail with few domains, I have few (well many)
>> users which use adreses with local domain , but they have also adreses
>> from another domain.
>> Local> .edu .com
>> NONLocal> .de
>> I make virtualdomain .de,.com,edu
>> so I want when some local user send mail to [EMAIL PROTECTED] and this
>> user exist in my own .de domain, its OK, but when it doesn not exist,
>> just redeliver message to another smtp host(regular MX for domain .de).
>>
>> Mail to this adreses when its com from internet , go to .de origin
>> server by DNS MX and it forward mails to my mailboxes. but I dont know
>> how to retrieve mail for local user which are not found in my local domain.
>> uff, well its messy , any ideas ?
>> I found that in .qmail-default in domain dir make this thig but its
>> redirect to exact mail adres, but i need just redirect it to smtp
>> server.
>>
>> thnx in advance
>>
>>Miki

JH> i think this was covered somewhen last year..
JH> i'm not sure, what the solution was back then, but i'd say

JH> on your "Local" server:
JH> add mx record for "pseudo.one.de"
JH> and alias the "pseudo.one.de" domain to "one.de" domain

JH> .qmail-default:
JH> | /home/vpopmail/bin/vdelivermail '' [EMAIL PROTECTED]

JH> on your "NONLocal" Server:
JH> add mx record for "realmx.one.de"
JH> and alias the "realmx.on.de" domain to "one.de" domain.

JH> .qmail-default:
JH> | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

JH> .qmail-someuseronlocal:
JH> & [EMAIL PROTECTED]




JH> what does this do?
JH> qmail puts the username part of the "RCPT TO:" email address into the env 
JH> variable EXT (at least i think it does?).
JH> so on your local server vdelivermail will first check, if the user exist on 
JH> the _local_ system ? if no: it forwards the mail to [EMAIL PROTECTED] which 
JH> is no local domain, but handled by the NONLocal server.

JH> on the NONLocal server it receives the mail, as realmx.one.de is an 
JH> aliasdomain for one.de it will handle the mail just as expected: if the user 
JH> doesn't exist on this system either, it will bounce the mail.

JH> you just have to make sure, that for each user on the "local" server a 
JH> .qmail-useronlocalname file on the "NONLocal" server exists.

 well, I dont have any access to NONlocal server ;((
 ill try better describe situation.

 internet.de---company.de|--localLAN.de
 |
 |
 |i
 |n
 |t
 |r
 |a
 |n
 |e
 |t
 |
 |
internet.edu--company.edu|---localLAN.edu

on company.edu i make virtual server company.edu for local mail but
how to make to send mail to realusers from real company.de ?

on company.edu exists users aka [EMAIL PROTECTED] and he has mailbox
also [EMAIL PROTECTED] , on server company.de he has made mailbox and
its forwarding all mails from internet.de and localLAN.de to
[EMAIL PROTECTED]  what I have to do is make that if someone from
localLAN.edu send mail to adres [EMAIL PROTECTED] mail will not travel
to company.de and then back to .edu coz we pay for this line huge
amount of money ;((, just round in circle and get to mailbox
[EMAIL PROTECTED] another problem is that on
company.edu are jus few users with mail .de, its not full copy of all
users from company.de. I dont have access to company.de

one solution is redirect all unrecognized mail to some local.edu user
and use some other program to monitor his queue and push all files to
smpt server on company.de,
second i found that in .qmail-default is delivering to some address
but i cant set it to '' [EMAIL PROTECTED] because it goes to loop
uff, any help ? plz ;)))

c:\u\l8ter


  miki




Re: [vchkpw] starting vpop gives error

2003-02-28 Thread Anders Brander
Hi,

On Thu, 2003-02-27 at 20:47, Rob G wrote:
> Do a netstat -na | grep LISTEN and see if anything else is listening on port
> 110 as that is what is holding the address open.

Try a netstat -lnp | grep 110 instead. It will also show the pid of the
listening program.

-- 
Anders Brander - http://anders.brander.dk/





[vchkpw] vpopmail MySQL can't find limits for domain

2003-02-28 Thread Dorneles Treméa
Hi guys,

I'm testing the following programs:

 - vpopmail 5.3.18 (with Kolaci's 26/02 patch):
   ./configure --enable-ip-alias-domains=y \
 --enable-auth-logging=y --enable-qmail-ext=y \
 --enable-roaming-users=y --enable-relay-clear-minutes=60 \
 --enable-defaultquota=10485760 --enable-learn-passwords=y \
 [EMAIL PROTECTED] \
 --enable-logging=e --enable-valias=y --enable-mysql=y \
 --enable-mysql-limits=y --enable-mysql-logging=y \
 --enable-libdir=/usr/lib --enable-passwd=n

 - qmailadmin 1.0.12:
   ./configure --enable-htmldir=/var/www \
 --enable-cgibindir=/usr/lib/cgi-bin \
 --enable-maxusersperpage=100 \
 --enable-autoresponder-bin=/usr/bin/autorespond \
 --enable-modify-quota=y \
 --enable-ezmlmdir=/usr/bin \
 --enable-imagedir=/var/www/images

 - vqadmin 2.3.5:
   ./configure --enable-htmldir=/var/www \
 --enable-cgibindir=/usr/lib/cgi-bin

Primary objective is keep all data on a MySQL database.

Both qmailadmin than vqadmin web interfaces are working, I
can log in, create new domains, add new users...

The problem is with MUAs... I can send messages, but I
can't get them... if I telnet port 110, and issue:

user [EMAIL PROTECTED]
pass thepassword
retr 1
retr 2
quit

I see the messages, but if I use Outlook Express, Mozilla
Mail, it gives me timeout... and with IMP web mail I just
see 2 lines with 'Subject: nosubject', 'Length: 0'...  :-(

Other strange behavior (I think): 'show domains' in vqadmin
report:

roo Aliased to alias
abus Aliased to alias
operato Aliased to alias
uuc Aliased to alias
anonymou Aliased to alias
backup-report Aliased to alias
bbsadmi Aliased to alias
dumpe Aliased to alias
hostmaste Aliased to alias
listmaste Aliased to alias
mailer-daemo Aliased to alias
manage Aliased to alias
orphanag Aliased to alias
warning Aliased to alias
webmaste Aliased to alias

Note users without last char. Also I don't know from
where come these alias... :-)

A last one: in qmail log, after delivery a message to
a maildir, I have:

 delivery XX: success: 
vnysql:_can't_find_limits_for_domain_'test.com'/did_0+0+1/

Obviously, my 'limits' mysql table is empty. I have the
feeling that this is the main reason of my problems...

Any help is immensely appreciate... :-)

Best regards,

-- 

Dorneles Treméa
Caxias do Sul - RS - Brasil
+55 54 9114 9312 - UIN: 2413568
X3ng Web Technology 

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCS/IT d- s:->: a23 C+++ UBL$ P--- L++ E-- W+++
N++ o? K? w+ O M+ V-- PS+ PE- Y-- PGP++ t+ 5 X++ R+
tv+ b(++) DI+ D++ G+>+++ e++> h r+++ y+++**
--END GEEK CODE BLOCK--




pgp0.pgp
Description: PGP signature


[vchkpw] qmail-pop3d does not run with tcpserver

2003-02-28 Thread Ihsan Turkmen
1. I can make qmail-pop3d run with xined ,but it does not run with
tcpserver.
2. /var/log/qmail-pop3d/current  /whateever th path is) is empty.
3. When I run the deamon manually, my typing is logged in the log (current)
file.

I found several mail threads in the search engines.But no answer for the
question. You can suggest me a maillist or a solution . Best reagards..

Shsan





Re: [vchkpw] qmail-pop3d does not run with tcpserver

2003-02-28 Thread Jesse Guardiani
- Original Message -
From: "Ihsan Turkmen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 28, 2003 8:35 AM
Subject: [vchkpw] qmail-pop3d does not run with tcpserver


> 1. I can make qmail-pop3d run with xined ,but it does not run with
> tcpserver.
> 2. /var/log/qmail-pop3d/current  /whateever th path is) is empty.
> 3. When I run the deamon manually, my typing is logged in the log
(current)
> file.
>
> I found several mail threads in the search engines.But no answer for the
> question. You can suggest me a maillist or a solution .

Qmail mailing list might help, but it's doubtful. Probably your best bet
would be to research the way that qmail-smtpd is run from tcpserver and read
about tcpserver in your man pages and on the web. Then attempt to duplicate
that functionality with qmail-pop3d. Research is usually the name of the
game with UNIX.

> Best reagards..
>
> Shsan
>
>
>
>




[vchkpw] redirect mail to another SMTP

2003-02-28 Thread Peter Mikeska

 ill try better describe situation.

 internet.de---company.de|--localLAN.de
 |
 |
 |i
 |n
 |t
 |r
 |a
 |n
 |e
 |t
 |
 |
internet.edu--company.edu|---localLAN.edu

on company.edu i make virtual server company.edu for local mail but
how to make to send mail to realusers from real company.de ?

on company.edu exists users aka [EMAIL PROTECTED] and he has mailbox
also [EMAIL PROTECTED] , on server company.de he has made mailbox and
its forwarding all mails from internet.de and localLAN.de to
[EMAIL PROTECTED]  what I have to do is make that if someone from
localLAN.edu send mail to adres [EMAIL PROTECTED] mail will not travel
to company.de and then back to .edu coz we pay for this line huge
amount of money ;((, just round in circle and get to mailbox
[EMAIL PROTECTED] another problem is that on
company.edu are jus few users with mail .de, its not full copy of all
users from company.de. I dont have access to company.de

one solution is redirect all unrecognized mail to some local.edu user
and use some other program to monitor his queue and push all files to
smpt server on company.de,
second i found that in .qmail-default is delivering to some address
but i cant set it to '' [EMAIL PROTECTED] because it goes to loop
uff, any help ? plz ;)))

c:\u\l8ter


  miki




[vchkpw] Qmail LDAP + vpopmail LDAP ???

2003-02-28 Thread Ajai Khattri
Anybody here using Qmail-LDAP with vpopmail LDAP?

I would like to have all the features of vpopmail using LDAP but I also 
would like Qmail to use LDAP too and integrate with vpopmail without any 
loss of functionality.

--
Aj.
Systems Administrator / Developer



Re: [vchkpw] Configure options for MySQL support?

2003-02-28 Thread Matt Simerson
I now do this with my mail toaster setup 
(http://matt.simerson.net/computing/mail/toaster/).

When you run the perl script (toaster_setup.pl -s vpopmail) it asks you 
a bunch of questions and then rewrites vmysql.h with your answers 
instead of the default values. Then it runs ./configure with the 
appropriate --enable-* stuff based on the interview.

Here's the useful logic:

sub set_up_vmysql {
   my ($mysql_repl, $my_write, $my_read, $my_user, $my_pass) = @_;
   copy("vmysql.h", "vmysql.h.orig");
   my @lines = read_file("vmysql.h");
   foreach my $line (@lines) {
  chomp $line;
  if  ( $line =~ /^#define MYSQL_UPDATE_SERVER/ ) {
 if ($mysql_repl) {
$line = "#define MYSQL_UPDATE_SERVER \"$my_write\"";
 } else {
$line = "#define MYSQL_UPDATE_SERVER \"$my_read\"";
 };
  } elsif ( $line =~ /^#define MYSQL_UPDATE_USER/ ) {
 $line = "#define MYSQL_UPDATE_USER   \"$my_user\"";
  } elsif ( $line =~ /^#define MYSQL_UPDATE_PASSWD/ ) {
 $line = "#define MYSQL_UPDATE_PASSWD \"$my_pass\"";
  } elsif ( $line =~ /^#define MYSQL_READ_SERVER/ ) {
 $line = "#define MYSQL_READ_SERVER   \"$my_read\"";
  } elsif ( $line =~ /^#define MYSQL_READ_USER/ ) {
 $line = "#define MYSQL_READ_USER \"$my_user\"";
  } elsif ( $line =~ /^#define MYSQL_READ_PASSWD/ ) {
 $line = "#define MYSQL_READ_PASSWD   \"$my_pass\"";
  };
   };
   write_file("vmysql.h", @lines);
};


On Tuesday, February 25, 2003, at 10:14  AM, Andre Fortin wrote:

This sounds like a good idea to me.. I'd like to see this in the 
future.

Andre

-Original Message-
From: Robin Bowes [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 10:13 AM
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] Configure options for MySQL support?
David,

On Tue, February 25, 2003 2:13 pm, David Richardson said:

I don't plan on changing my MySQL params very often, but I'm _certain_
that I'll forget to update vmysql.h during a recompile and I'll 
foobar my
Vpopmail.
Can you guess what bit me resulting in my raising this as an issue?!!

Perhaps we could just cobble together a helper perl script to query 
for
and rewrite the vmysql.h params as part of the compile script(s) you 
use.
That's another possibility...

Without a lot of other "me too" votes, is there interest from the 
vpopmail
team in having this idea go a particular direction (into config/make 
or
external perl)?  Is this even the appropriate venue to ask???
Let's wait and see...

R.
--
Robin Bowes | http://robinbowes.com






RE: [vchkpw] qmail-pop3d does not run with tcpserver

2003-02-28 Thread Clayton Weise
And a copy of your startup scripts might help with troubleshooting.  Saying
"it doesn't work" without showing us what's in your scripts is very vague
and hard to troubleshoot.

-Clayton

-Original Message-
From: Jesse Guardiani [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 28, 2003 6:38 AM
To: [EMAIL PROTECTED]
Subject: Re: [vchkpw] qmail-pop3d does not run with tcpserver


- Original Message -
From: "Ihsan Turkmen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 28, 2003 8:35 AM
Subject: [vchkpw] qmail-pop3d does not run with tcpserver


> 1. I can make qmail-pop3d run with xined ,but it does not run with 
> tcpserver. 2. /var/log/qmail-pop3d/current  /whateever th path is) is 
> empty. 3. When I run the deamon manually, my typing is logged in the 
> log
(current)
> file.
>
> I found several mail threads in the search engines.But no answer for 
> the question. You can suggest me a maillist or a solution .

Qmail mailing list might help, but it's doubtful. Probably your best bet
would be to research the way that qmail-smtpd is run from tcpserver and read
about tcpserver in your man pages and on the web. Then attempt to duplicate
that functionality with qmail-pop3d. Research is usually the name of the
game with UNIX.

> Best reagards..
>
> Shsan
>
>
>
>








Re: [vchkpw] vpopmail MySQL can't find limits for domain

2003-02-28 Thread Dorneles Treméa
Hi,

I'm playing with this the whole day, but just discovered:

> Both qmailadmin than vqadmin web interfaces are working, I
> can log in, create new domains, add new users...
> 
> The problem is with MUAs... I can send messages, but I
> can't get them... if I telnet port 110, and issue:
> 
> user [EMAIL PROTECTED]
> pass thepassword
> retr 1
> retr 2
> quit
> 
> I see the messages, but if I use Outlook Express, Mozilla
> Mail, it gives me timeout... and with IMP web mail I just
> see 2 lines with 'Subject: nosubject', 'Length: 0'...  :-(

Aham! I found the problem who is causing this... :-)

Debian 'qmail-src' package already comes with some patches
applied. The one who gives me all this headache is:

=> netscape-progress.patch

It was adding message size before header 'Return-Path':

xReturn-Path

I don't know if this is the expected behavior to this path.
Anyway it isn't important to me... :-)

> ...
> manage Aliased to alias
> orphanag Aliased to alias
> warning Aliased to alias
> webmaste Aliased to alias
> 
> Note users without last char. Also I don't know from
> where come these alias... :-)

This continues a mystery to me... :-(

> A last one: in qmail log, after delivery a message to
> a maildir, I have:
> 
>  delivery XX: success: 
> vnysql:_can't_find_limits_for_domain_'test.com'/did_0+0+1/
> 
> Obviously, my 'limits' mysql table is empty. I have the
> feeling that this is the main reason of my problems...

And this is what I will debug this night... :-)

Regards,

-- 

Dorneles Treméa
Caxias do Sul - RS - Brasil
+55 54 9114 9312 - UIN: 2413568
X3ng Web Technology 

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCS/IT d- s:->: a23 C+++ UBL$ P--- L++ E-- W+++
N++ o? K? w+ O M+ V-- PS+ PE- Y-- PGP++ t+ 5 X++ R+
tv+ b(++) DI+ D++ G+>+++ e++> h r+++ y+++**
--END GEEK CODE BLOCK--



pgp0.pgp
Description: PGP signature


[vchkpw] Suggestions a username problem

2003-02-28 Thread Bryan Ballard
I can't seem to get vadduser to add email addresses with only one
character. for example:

vadduser [EMAIL PROTECTED] test 

Re: [vchkpw] Suggestions a username problem

2003-02-28 Thread Júlio Espada Olivares
by default u need to use at least 2 chars 


- Original Message - 
From: "Bryan Ballard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 28, 2003 10:45 PM
Subject: [vchkpw] Suggestions a username problem


> I can't seem to get vadduser to add email addresses with only one
> character. for example:
> 
> vadduser [EMAIL PROTECTED] test  
> vadduser [EMAIL PROTECTED] test <-fails with a illegal username error. 
> 
> I am not sure what is illegal about the username t or any other
> character a-z but any suggestions would be helpful.
> 
> -- 
> Bryan Ballard
> Netsolus Consultants
> http://www.netsolus.com
> 
> 
> 
> 




[vchkpw] Changing Email quotas system wide?

2003-02-28 Thread Gabriel Ambuehl
Hello,
Im wondering how I can bump quotas for all users on the system at the
same time. If I set hardquota to a higher number, the quotas in the
vpasswd files will still be there, so is there are good way to change
all the users at once or do I need to write a script that calls
vsetuserquota on every single user on the machine?

  

BTW: PLEASE copy the message to my reply to address, Im on the road
and I dont download all my ML traffic over GPRS ;-)

Best regards,
 Gabriel




RE: [vchkpw] Changing Email quotas system wide?

2003-02-28 Thread Remo Mattei
You need to create a script and use the vsetquota option.



Remo Mattei
Network Security Engineer
cell 801-209-8554
email [EMAIL PROTECTED]

-Original Message-
From: Gabriel Ambuehl [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 28, 2003 10:27 PM
To: [EMAIL PROTECTED]
Subject: [vchkpw] Changing Email quotas system wide?

Hello,
Im wondering how I can bump quotas for all users on the system at the
same time. If I set hardquota to a higher number, the quotas in the
vpasswd files will still be there, so is there are good way to change
all the users at once or do I need to write a script that calls
vsetuserquota on every single user on the machine?

  

BTW: PLEASE copy the message to my reply to address, Im on the road
and I dont download all my ML traffic over GPRS ;-)

Best regards,
 Gabriel