DIYMacServer » Postfix

4 posts

_dspam and _vmail on 10.5.2 - postfix won't start

started at 20 Apr 2008
started by Nick
last reply from Nick
  • 20 Apr 2008
    #

    Hi,

    I have been following your excellent instructions and run in to a problem where postfix won't start.  The problem are these two lines in the master.cf

    Machine details:  Mac Mini, 10.5.2

    maildrop unix - n n - - pipe
    flags=DRhu user=_vmail argv=/usr/local/bin/maildrop /etc/maildroprc -d ${user}@${nexthop} ${extension} ${recipient} ${user} ${nexthop} ${sender}
    dspam unix - n n - 10 pipe
    flags=Ru user=_dspam argv=/usr/local/bin/dspam --deliver=innocent --user ${recipient} -i - f $sender -- $recipient

    The complaint in the log is:

    bad transport type: user=_vmail

    The users were created using:

    sudo dscl . -create /Users/_vmail
    sudo dscl . -create /Users/_vmail UserShell /usr/bin/false
    sudo dscl . -create /Users/_vmail UniqueID 102
    sudo dscl . -create /Users/_vmail PrimaryGroupID 102
    sudo dscl . -create /Users/_vmail NFSHomeDirectory /var/empty
    sudo dscl . -passwd /Users/_vmail ''

    and

    sudo dscl . -create /Users/_dspam
    sudo dscl . -create /Users/_dspam UserShell /usr/bin/false
    sudo dscl . -create /Users/_dspam UniqueID 101
    sudo dscl . -create /Users/_dspam PrimaryGroupID 101
    sudo dscl . -create /Users/_dspam NFSHomeDirectory /usr/local/var/dspam
    sudo dscl . -passwd /Users/_dspam ''

    Any thoughts?

    Nick

  • 20 Apr 2008
    #

    Nick I need more info on when the error occurs, I've replied to your email. PLease send me a bigger chunk of the log.

  • 20 Apr 2008
    #

    Nick made a small error in his master.cf he forgot the spaces in the transport configurations second line:

    dspam unix - n n - 10 pipe
    flags=Ru user=_dspam <snipped>
    maildrop unix - n n - - pipe
    flags=DRhu user=_vmail argv=/usr/local/<snipped>

    Should look like:

    dspam unix - n n - 10 pipe
      flags=Ru user=_dspam <snipped>
    maildrop unix - n n - - pipe
      flags=DRhu user=_vmail argv=/usr/<snipped>
  • 20 Apr 2008
    #

    Thanks for all your help, and who would have thought that 2 spaces could have caused so much trouble....

Reply

You must log in to post.