vorrei mettere uno script per l'avvio automatico di postfix, ma non ho idea di come farlo..
quello che mi viene in mente è farne uno sullo stile di quello per sendmail:

codice:
#!/bin/sh
# Start/stop postfix.

# Start postfix:
postfix_start() {
  if [ -x /usr/sbin/postfix ]; then
    echo "Starting postfix MTA daemon:  /usr/sbin/postfix -L sm-mta -bd -q25m"
    /usr/sbin/postfix -L sm-mta -bd 
    echo "Starting postfix MSP queue runner:  /usr/sbin/postfix -L sm-msp-queue -Ac -q25m"
    /usr/sbin/postfix -L sm-msp-queue 
  fi
}

# Stop postfix:
postfix_stop() {
  killall postfix
}



case "$1" in
'start')
  postfix_start
  ;;
'stop')
  postfix_stop
  ;;

*)
  echo "usage $0 start|stop"
esac
non so se possa andare, inoltre postfix supporta anche reload, flush e check


Altra domandina: ho creato un piccolo script in perl per l'aggiunta delle passwd, ma quando lo processa mi dice: /usr/sbin/perl no such file or directory

ovviamente il binario c'è,
può essere che sia corrotto?

grazie a chi mi risponderà