postforward
postforward copied to clipboard
postforward panic runtime error
Hi, first of all great thank you for project members.
I have trouble, help please.
My setting and error below.
- postfix main.cf
recipient_canonical_maps = tcp:localhost:10002
recipient_canonical_classes= envelope_recipient,header_recipient
- postsrsd deamon
postsrsd -D -u mailnull -p /var/run/postsrsd/postsrsd.pid -d mail.example.com -s /usr/local/etc/postsrsd.secret -f 10001 -r 10002 -t 1800
- /etc/aliases
forwarder: "|/usr/local/bin/postforward [email protected]",\forwarder
- /var/log/maillog
Oct 18 05:43:56 mail postfix/local[82269]: A992C45B10B: to=<[email protected]>, orig_to=<[email protected]>, relay=local, delay=0.94, delays=0.91/0/0/0.03, dsn=5.3.0, status=bounced (Command died with status 2: "/usr/local/bin/postforward [email protected]". Command output: panic: runtime error: slice bounds out of range [:24] with length 21 goroutine 1 [running]: main.main() github.com/zoni/postforward/postforward.go:170 +0xa5c )