Re: RES: RES: RES: Telnet fail!
Hello Daniel, On Wednesday, July 25, 2001 at 12:19:01 AM you wrote: I have another question. How do I set to not receive a message from a user (example: [EMAIL PROTECTED]) to my virtual domains users?? by adding the unwanted sender address to /var/qmail/control/badmailfrom -- Best regards Peter Palmreuthermailto:[EMAIL PROTECTED]
RES: RES: RES: RES: Telnet fail!
How do I know if it works?? []'s Daniel. -Mensagem original- De: Peter Palmreuther [mailto:[EMAIL PROTECTED]] Enviada em: Quarta-feira, 25 de Julho de 2001 05:09 Para: [EMAIL PROTECTED] Assunto: Re: RES: RES: RES: Telnet fail! Hello Daniel, On Wednesday, July 25, 2001 at 12:19:01 AM you wrote: I have another question. How do I set to not receive a message from a user (example: [EMAIL PROTECTED]) to my virtual domains users?? by adding the unwanted sender address to /var/qmail/control/badmailfrom -- Best regards Peter Palmreuther mailto:[EMAIL PROTECTED]
Re: RES: RES: RES: RES: Telnet fail!
Hello Daniel, On Wednesday, July 25, 2001 at 2:48:42 PM Daniel Abad wrote to subject: RES: RES: RES: RES: Telnet fail!: DA How do I know if it works?? after putting it into /var/qmail/control/badmailfrom (and HUPing qmail-send) make a telnet host 25 type in 'EHLO' (plus Enter), if the server responds with a '250-hostname' go on and type 'MAIL FROM: [EMAIL PROTECTED]' (enter), next a 'RCPT TO: [EMAIL PROTECTED]' (enter). Now you should get an error message: 553 sorry, your envelope sender is in my badmailfrom list (#5.7.1) -- Best regards Peter Palmreuthermailto:[EMAIL PROTECTED]
RES: RES: RES: RES: RES: Telnet fail!
Nop! It's nothing working. Do I need something to make this check at this file (badmailfrom)??? Something using tcpserver for example?? su-2.03# telnet localhost 25 Trying 127.0.0.1... Connected to localhost.domain.com.br. Escape character is '^]'. 220 server.domain.com.br ESMTP helo 250 server.domain.com.br mail from: [EMAIL PROTECTED] 250 ok rcpto to: [EMAIL PROTECTED] 502 unimplemented (#5.5.1) rcpt to: [EMAIL PROTECTED] 250 ok data 354 go ahead teste . 250 ok 996066268 qp 56516 quit Daniel -Mensagem original- De: Peter Palmreuther [mailto:[EMAIL PROTECTED]] Enviada em: Quarta-feira, 25 de Julho de 2001 10:06 Para: vpopmail mailinglist Assunto: Re: RES: RES: RES: RES: Telnet fail! Hello Daniel, On Wednesday, July 25, 2001 at 2:48:42 PM Daniel Abad wrote to subject: RES: RES: RES: RES: Telnet fail!: DA How do I know if it works?? after putting it into /var/qmail/control/badmailfrom (and HUPing qmail-send) make a telnet host 25 type in 'EHLO' (plus Enter), if the server responds with a '250-hostname' go on and type 'MAIL FROM: [EMAIL PROTECTED]' (enter), next a 'RCPT TO: [EMAIL PROTECTED]' (enter). Now you should get an error message: 553 sorry, your envelope sender is in my badmailfrom list (#5.7.1) -- Best regards Peter Palmreuther mailto:[EMAIL PROTECTED]
Re: RES: RES: Telnet fail!
Hello Daniel - I am facing the same pbl as described below and I followed the same steps as instructed by u, making changes where ever required (pls see the code below). But when try to execute the script as ./run start from the command prompt, it gives me the following output: Starting qmail... [1] 20142 tcpserver: fatal: unable to bind: address already used Any clues, what could have gone wrong. Thanks. Kind regards. KK [EMAIL PROTECTED] - Original Message - From: David Gartner [EMAIL PROTECTED] To: Daniel Abad [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, July 25, 2001 1:37 AM Subject: Re: RES: RES: Telnet fail! Daniel, Well here's what I have and it works. You should also make sure that the directory vpop is in is owned to the vpopmail user and group you created. This (of course) has to be executable. You start by doing: ./filename start You stop by: ./filename stop You'll have to edit this as needed. #!/bin/sh export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/var/qmail/bin /etc/rc.d/init.d/functions [ -f /var/qmail/bin/qmail-start ] || exit 0 case $1 in start) echo -n Starting qmail... echo /bin/csh -cf '/var/qmail/rc ' /usr/local/bin/tcpserver -c 200 0 110 /var/qmail/bin/qmail-popup mail_domain.com /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 21 /usr/local/bin/tcpserver -c 200 -p -x /home/vpopmail/etc/tcp.smtp -u89 -g89 0 25 /var/qmail/bin/qmail-smtpd ;; stop) echo -n Stopping qmail... echo killall qmail-send killall tcpserver ;; restart) $0 stop $0 start ;; *) echo -n Usage: $0 {start|stop|restart} echo exit 1 esac exit 0 Hope this helps. Good luck! David
Re: RES: RES: Telnet fail!
KK, This means that port 110 or port 25 are already open. You may be running 110 or 25 through inet. In this case, edit /etc/inetd.conf and comment out the lines with pop-3 and smtp, then restart inetd. Not running inetd? Maybe you have a tcpserver already running. Try killing all tcpserver processes. You can see what ports are open using this command: for tcp ports: netstat -tla for udp ports: netstat -ula for both: netstat -utla Hope this helps! David Gartner KK wrote: Hello Daniel - I am facing the same pbl as described below and I followed the same steps as instructed by u, making changes where ever required (pls see the code below). But when try to execute the script as ./run start from the command prompt, it gives me the following output: Starting qmail... [1] 20142 tcpserver: fatal: unable to bind: address already used Any clues, what could have gone wrong. Thanks. Kind regards. KK [EMAIL PROTECTED] - Original Message - From: David Gartner [EMAIL PROTECTED] To: Daniel Abad [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, July 25, 2001 1:37 AM Subject: Re: RES: RES: Telnet fail! Daniel, Well here's what I have and it works. You should also make sure that the directory vpop is in is owned to the vpopmail user and group you created. This (of course) has to be executable. You start by doing: ./filename start You stop by: ./filename stop You'll have to edit this as needed. #!/bin/sh export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/var/qmail/bin /etc/rc.d/init.d/functions [ -f /var/qmail/bin/qmail-start ] || exit 0 case $1 in start) echo -n Starting qmail... echo /bin/csh -cf '/var/qmail/rc ' /usr/local/bin/tcpserver -c 200 0 110 /var/qmail/bin/qmail-popup mail_domain.com /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 21 /usr/local/bin/tcpserver -c 200 -p -x /home/vpopmail/etc/tcp.smtp -u89 -g89 0 25 /var/qmail/bin/qmail-smtpd ;; stop) echo -n Stopping qmail... echo killall qmail-send killall tcpserver ;; restart) $0 stop $0 start ;; *) echo -n Usage: $0 {start|stop|restart} echo exit 1 esac exit 0 Hope this helps. Good luck! David
RES: RES: Telnet fail!
No... not yet. Startup file: exec /usr/local/bin/softlimit -m 200 \ /usr/local/bin/tcpserver -v -R -H -l 0 0 110 /var/qmail/bin/qmail-popup \ brparcunix02.cidadeinternet.com.br /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 21 Result: su-2.03# telnet localhost 110 Trying 127.0.0.1... tcpserver: status: 1/40 Connected to localhost.domain.com.br. Escape character is '^]'. tcpserver: pid 75967 from 127.0.0.1 tcpserver: ok 75967 0:127.0.0.1:110 :127.0.0.1::1076 +OK [EMAIL PROTECTED] user [EMAIL PROTECTED] +OK pass teste tcpserver: end 75967 status 256 tcpserver: status: 0/40 Connection closed by foreign host. -Mensagem original- De: David Gartner [mailto:[EMAIL PROTECTED]] Enviada em: Terça-feira, 24 de Julho de 2001 16:49 Para: Daniel Abad Cc: [EMAIL PROTECTED] Assunto: Re: RES: Telnet fail! Daniel, Yeah, that's the problem. Change /bin/checkpasswd to /path/to/vpopmail/bin/vchkpw and restart qmail and give it another try. David Daniel Abad wrote: Here, Take a look at the qmail startup. #!/bin/sh /usr/local/bin/tcpserver -x/etc/tcp.smtp.cdb -u1026 -g1005 0 25 /var/qmail/bin/qmail -smtpd exec /usr/local/bin/softlimit -m 200 \ /usr/local/bin/tcpserver -v -R -H -l 0 0 110 /var/qmail/bin/qmail-popup \ server.domain.com.br /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir 21 exec env - PATH=/var/qmail/bin:$PATH \ /var/qmail/bin/qmail-start ./Maildir/ splogger qmail (PS.I know that server.domain is my machine!) tks. Daniel -Mensagem original- De: David Gartner [mailto:[EMAIL PROTECTED]] Enviada em: Terça-feira, 24 de Julho de 2001 16:41 Para: Daniel Abad Cc: [EMAIL PROTECTED] Assunto: Re: Telnet fail! Daniel, Something I would check would be the script you call qmail with. If you were using standalone qmail before, you might have it using something other than vhckpw for the password authentication. *shrug* Just a thought. David Daniel Abad wrote: Hi folks, I have a problem... I made all the installation as the documentation. Now when I try to telnet localhost 110, a fail happens. I'm using tcpserver with qmail + vpopmail... su-2.03# telnet localhost 110 Trying 127.0.0.1... Connected to localhost.cidadeinternet.com.br. Escape character is '^]'. +OK [EMAIL PROTECTED] user [EMAIL PROTECTED] +OK pass teste -ERR authorization failed Connection closed by foreign host. What should I do?? Tks. Daniel
Re: RES: RES: Telnet fail!
Daniel, Well here's what I have and it works. You should also make sure that the directory vpop is in is owned to the vpopmail user and group you created. This (of course) has to be executable. You start by doing: ./filename start You stop by: ./filename stop You'll have to edit this as needed. #!/bin/sh export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/var/qmail/bin /etc/rc.d/init.d/functions [ -f /var/qmail/bin/qmail-start ] || exit 0 case $1 in start) echo -n Starting qmail... echo /bin/csh -cf '/var/qmail/rc ' tcpserver -c 200 0 110 /var/qmail/bin/qmail-popup mail.domain.net /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir tcpserver -c 200 -p -x /home/vpopmail/etc/tcp.smtp.cdb -u100 -g501 0 25 /var/qmail/bin/qmail-smtpd ;; stop) echo -n Stopping qmail... echo killall qmail-send killall tcpserver ;; restart) $0 stop $0 start ;; *) echo -n Usage: $0 {start|stop|restart} echo exit 1 esac exit 0 Hope this helps. Good luck! David Daniel Abad wrote: No... not yet. Startup file: exec /usr/local/bin/softlimit -m 200 \ /usr/local/bin/tcpserver -v -R -H -l 0 0 110 /var/qmail/bin/qmail-popup \ brparcunix02.cidadeinternet.com.br /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 21 Result: su-2.03# telnet localhost 110 Trying 127.0.0.1... tcpserver: status: 1/40 Connected to localhost.domain.com.br. Escape character is '^]'. tcpserver: pid 75967 from 127.0.0.1 tcpserver: ok 75967 0:127.0.0.1:110 :127.0.0.1::1076 +OK [EMAIL PROTECTED] user [EMAIL PROTECTED] +OK pass teste tcpserver: end 75967 status 256 tcpserver: status: 0/40 Connection closed by foreign host. -Mensagem original- De: David Gartner [mailto:[EMAIL PROTECTED]] Enviada em: Terça-feira, 24 de Julho de 2001 16:49 Para: Daniel Abad Cc: [EMAIL PROTECTED] Assunto: Re: RES: Telnet fail! Daniel, Yeah, that's the problem. Change /bin/checkpasswd to /path/to/vpopmail/bin/vchkpw and restart qmail and give it another try. David Daniel Abad wrote: Here, Take a look at the qmail startup. #!/bin/sh /usr/local/bin/tcpserver -x/etc/tcp.smtp.cdb -u1026 -g1005 0 25 /var/qmail/bin/qmail -smtpd exec /usr/local/bin/softlimit -m 200 \ /usr/local/bin/tcpserver -v -R -H -l 0 0 110 /var/qmail/bin/qmail-popup \ server.domain.com.br /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir 21 exec env - PATH=/var/qmail/bin:$PATH \ /var/qmail/bin/qmail-start ./Maildir/ splogger qmail (PS.I know that server.domain is my machine!) tks. Daniel -Mensagem original- De: David Gartner [mailto:[EMAIL PROTECTED]] Enviada em: Terça-feira, 24 de Julho de 2001 16:41 Para: Daniel Abad Cc: [EMAIL PROTECTED] Assunto: Re: Telnet fail! Daniel, Something I would check would be the script you call qmail with. If you were using standalone qmail before, you might have it using something other than vhckpw for the password authentication. *shrug* Just a thought. David Daniel Abad wrote: Hi folks, I have a problem... I made all the installation as the documentation. Now when I try to telnet localhost 110, a fail happens. I'm using tcpserver with qmail + vpopmail... su-2.03# telnet localhost 110 Trying 127.0.0.1... Connected to localhost.cidadeinternet.com.br. Escape character is '^]'. +OK [EMAIL PROTECTED] user [EMAIL PROTECTED] +OK pass teste -ERR authorization failed Connection closed by foreign host. What should I do?? Tks. Daniel