Using squirrelmail with qmail, relaying problem
Hi, I read the message on how to set up squirrelmail to use it with apache recently on this list. It works almost fine but I have one problem. I get this error when I try to send messeges if I have my rcphosts in /var/qmail/control. Requested action not taken: mailbox name not allowed Server replied: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) I have tryed this as well: ( Im using tcpserver btw ). http://www.qmail.org/qmail-manual-html/misc/FAQ.html#5.4. My /var/qmail/rc does look like this: #!/bin/sh # Using splogger to send the log through syslog. # Using qmail-local to deliver messages to Maildir format by default case $1 in start) exec env - PATH=/var/qmail/bin:$PATH \ qmail-start '|preline maildrop' splogger qmail ./Maildir/ # smtp daemon /usr/local/bin/tcpserver -v -x/etc/tcp.smtp.cdb -u 82 -g 81 0 smtp /var/qmail/bin/qmail-smtpd 21 | setuidgid qmaill multilog t s100 n10 /var/log/qmail/qmail-smtpd/ # pop3 daemon /usr/local/bin/tcpserver -v -x /etc/tcp.smtp.cdb 0 pop3 /var/qmail/bin/qmail-popup tysken.un1x.la /bin/checkpassword /var/qmail /bin/qmail-pop3d Maildir 21 | setuidgid qmaill multilog t s100 n10 /var/log/qmail/qmail-pop3d exit 0 ;; stop) exec killall -1 qmail-send tcpserver ;; reload) exec qmail-tcpok exec killall -14 qmail-send exec killall -1 qmail-send ;; *) echo Usage: `basename $0` {start|stop|reload} 2 exit 64 ;; esac -EOF- My /etc/tcp.smtp.cdb is setup up like this: 192.168.0.:allow,RELAYCLIENT= 127.:allow,RELAYCLIENT= :allow -EOF- But I still can't get it to work even if I have rcphosts in place and I have setup the above hosts for relaying. Am I missing something importent? I would also like to have everyone that logs in to be allowed to send mail offcourse, can anybody help me out here with this? Let me know if you want more information on this bit to be able to help me out. Its quite futile to let everyone relay messages from my MTA... I know but that is the only working solution now. I also run courier-imap to and I get the same problem if I try to send mail via balsa in FreeBSD or opera in windows if I try to send mail that are none local, I mean that are not in the tysken.un1x.la domain. Thanks in advance Mvh Mattias Björk ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Using squirrelmail with qmail, relaying problem
Requested action not taken: mailbox name not allowed Server replied: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) Try with this rc script. Just change the hostname.domain inside the script.#!/bin/sh # # This script starts and stops the qmail mail functions. # # Suck in the configuration variables. if [ -r /etc/defaults/rc.conf ]; then . /etc/defaults/rc.conf source_rc_confs elif [ -r /etc/rc.conf ]; then . /etc/rc.conf fi case $1 in start) case ${qmail_smtp_enable} in [Yy][Ee][Ss]) # Start the qmail smtp daemon /usr/local/bin/tcpserver -H -R -c 255 -x /etc/tcp.smtp.cdb \ -u 82 -g 81 0 25 /var/qmail/bin/qmail-smtpd echo -n qmail-smtp ;; esac case ${qmail_pop_enable} in [Yy][Ee][Ss]) # Start the qmail pop daemon /usr/local/bin/tcpserver -H -R -c 255 0 110 \ /var/qmail/bin/qmail-popup goatrance.chombe.org \ /usr/local/bin/checkpassword /var/qmail/bin/qmail-pop3d \ Maildir echo -n qmail-pop ;; esac case ${qmail_enable} in [Yy][Ee][Ss]) # Start qmail exec env - PATH=/var/qmail/bin:$PATH \ qmail-start ./Maildir splogger qmail echo -n qmail ;; esac ;; stop) # Stop the smtp daemon smtppid=`ps -axw | grep tcpserver | grep smtp | grep -v grep | awk '{ print $1 }'` if [ $smtppid != ]; then kill $smtppid echo -n qmail-smtp fi # Stop the pop daemon poppid=`ps -axw | grep tcpserver | grep popup | grep -v grep | awk '{ print $1 }'` if [ $poppid != ]; then kill $poppid echo -n qmail-pop fi # Stop qmail qmailpid=`ps -axw | grep qmail-send | grep -v grep | awk '{ print $1 }'` if [ $qmailpid != ]; then kill $qmailpid echo -n qmail fi ;; *) echo Usage: `basename $0` {start|stop} 2 ;; esac exit 0 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Using squirrelmail with qmail, relaying problem
Hi, Try with this rc script. Just change the hostname.domain inside the script. I modified your script and removed som stuff. Then i changed back to my script and added the options in my script instead. Put I still get the same error when I have rcpthosts in place. Mvh Mattias Björk ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Using squirrelmail with qmail, relaying problem
Hi Not sure if it's a typo, but the file should be rcpthosts (not rcphosts). Ehmm you are correct i missed a letter there. Contents should be hostname.domain-name.TLD and domain-name.TLD For example on my box: nostromo:[/var/qmail/control] cat rcpthosts nostromo.brian-jackson.net brian-jackson.net HTH Brian My rcpthosts looks like this: dasboot.birch.se thrawn.birch.se This is the machine Im sitting on and using as my workstation logning in to squirrelmail via my LAN. setiathome.birch.se This is the squirrelmail/apache/qmail server but the LAN domain + LAN hostname. localhost tysken.un1x.la webmail.tysken.un1x.la Those to are the domain/subdomain names for the internet of setiathome.birch.se I have set my hostname to tysken.un1x.la instead of setiathome.birch.se but I still get the same error. But Im thinking that this is not qmail problem that this have something to do with courier-imap not allowing it but I can be wrong. Any who thanks for the reply! Mvh Mattias Björk ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]