Is it possible to have emails received by postfix delivered to a java program? I have a Linux system which uses Postfix to receive emails. I would like to use a Java program to process the raw email messages. In other words, I don’t want to deal with protocols such as SMTP, IMAP, etc. I just want to the Postfix to pass the raw email message text to the Java program.
Share
You can create a command alias in
/etc/aliases, which has the form:Mail to
my-alias@example.comwill then be piped tocommand.