Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 May 2003 14:02:16 -0400
From:      "Kliment Andreev" <klimenta@futurebit.com>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Using squirrelmail with qmail, relaying problem
Message-ID:  <002701c32543$6da0ff10$ca0110ac@vinyl.tkvbp.com>
References:  <3360.192.168.0.1.1054140172.squirrel@webmail.tysken.un1x.la>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
> 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.
[-- Attachment #2 --]
#!/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
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002701c32543$6da0ff10$ca0110ac>