How to pipe emails and use a mysql database?

Hello there, I followed this guide: https://library.linode.com/email/postfi … ph_aliases">https://library.linode.com/email/postfix/postfix2.9.6-dovecot2.0.19-mysql#sph_aliases

but how would I pipe emails for a single email address to a script?

Am i right in thinking it cant be done with a virtual_alias mysql table?

1 Reply

Not sure if you can put "|command" on the right-hand side of a virtual alias table. But I think you can specify "someaddress" (with no domain) on the right-hand side of the virtual alias table, then put the following in /etc/aliases.

someaddress: "|/path/to/command"

At least, the documentation seems to indicate this will work.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct