Package: postgrey
Version: 1.17-2
Severity: wishlist

Hi!

At the moment it doesn't seem possible to pass an argument with spaces
via /etc/default/postgrey to postgrey, because the shell doesn't expand
an argument multiple times.

To be more specifix, I'm unable to find a way to pass
--greylist-text="Text with blanks" to postgrey in a workable manner.

I think a good way around all this would be a bit of shuffling around, 
and to use an array for the options. For example, moving the options in
/etc/init.d/postgrey further up:

POSTGREY_OPTS="--pidfile=$PIDFILE --daemonize"

# Read config file if it is present.
if [ -r /etc/default/$NAME ]
then
        . /etc/default/$NAME
fi

change the call from start-stop-daemon:

        start-stop-daemon --start --quiet --pidfile $PIDFILE \
                --exec $DAEMON -- "[EMAIL PROTECTED]"

and, finally, have /etc/default/postgrey contain:

POSTGREY_OPTS=($POSTGREY_OPTS --inet=127.0.0.1:60000 --delay=10
 "--greylist-text=Text with blanks.")

This way, one can make use of all of postgrey's options in a clean manner.

cheers,
&rw

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: sparc (sparc64)
Kernel: Linux 2.4.27-1-sparc64
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages postgrey depends on:
ii  debconf                       1.4.30.11  Debian configuration management sy
ii  libberkeleydb-perl            0.26-3     use Berkeley DB 4 databases from P
ii  libnet-dns-perl               0.48-1     Perform DNS queries from a Perl sc
ii  libnet-server-perl            0.87-2     An extensible, general perl server
ii  perl                          5.8.4-5    Larry Wall's Practical Extraction 

-- debconf information:
  postgrey/1.13-5_move-db:
  postgrey/1.14-1_lookup-by-subnet:
  postgrey/1.13-5_old-config:


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to