Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Santiago Zarate
Santiago Zarate

Posted on • Originally published atfoursixnine.io on

     

Setting up postfix, dovecot and sieve

The horror

While trying to set up my mail system, I ran into multiple tutorials to figure out what was the best way to avoid multiple error messages, mainly because you, like me (you silly human!), simply copy and pasted random stuff from stack overflow, and tutorials in howtoforge and places like that…

The mistakes

You tried something like this

spamassassin unix - n n - - pipe flags=DROhu user=vmail argv=/usr/bin/spamc -e /usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop}
Enter fullscreen modeExit fullscreen mode

or this:

mailbox_transport = lmtp:unix:private/lmtpvirtual_transport = lmtp:unix:private/lmtp
Enter fullscreen modeExit fullscreen mode

The pain

so you ended up with something that looks similar to this:

Oct 24 01:13:24 nergal postfix/pipe[10207]: fatal: get_service_attr: unknown username: vmailOct 24 01:13:25 nergal postfix/master[10104]: warning: process /usr/lib/postfix/bin//pipe pid 10207 exit status 1Oct 24 01:13:25 nergal postfix/qmgr[10106]: warning: private/spamassassin socket: malformed responseOct 24 01:13:25 nergal postfix/master[10104]: warning: /usr/lib/postfix/bin//pipe: bad command startup -- throttlingOct 24 01:13:25 nergal postfix/qmgr[10106]: warning: transport spamassassin failure -- see a previous warning/fatal/panic logfile record for the problem description
Enter fullscreen modeExit fullscreen mode

Resignation

So what worked for me was to leave the service in the master.cf as I had it working…

and simply add to master.cf

spamassassin unix - n n - - pipe flags=R user=app argv=/usr/bin/spamc -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
Enter fullscreen modeExit fullscreen mode

and in the main.cf

mailbox_command = /usr/lib/dovecot/deliver
Enter fullscreen modeExit fullscreen mode

The light

Sieve filtering started to work after these changes :)

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

I do free and opensource software. I eat. I travel. I take pictures. I bike. I love linguistics. I do @eltravelosaurio and use #travelingtrex.
  • Location
    Nürnberg
  • Work
    Product Owner, Quality Engineering Core team @ SUSE
  • Joined

More fromSantiago Zarate

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp