Skip to main content

Thread: Analyze and archive incoming messages to filesystem


where work we're trying create mailbox our employees sends messages , mail server processess them. support of companies send email ticket automatically opened, instead need save messages filesystem depending upon identified id in message.

we're considering 2 options:

1) identify to: header

messages sent 12345@domain.com or os+12345@domain.com, 12345 out customer identifier, , mail server processess messages , saves them to:

/data/os/12345/customer contact.eml

2) identify subject: header

messages sent os@domain.com , customer identifier specified in subject [12345] customer contact.

need other verifications user (from: header) authorized archive messages customer, story.

tried searching along line of amavis , clamav filters had no success.

have clues on how this?

thank in advance.

original post in serverfault.com

take @ procmail, swiss-army-knife of mail delivery agents. little effort should able write "recipes" scan headers customer number , other information you're using filtering, copy matching message specified folder. might need pipe message simple bash script uses awk extract customer's identifier saves message appropriate file. after you've installed procmail, see "man procmailrc" , "man procmailex" details.

procmail may or may not have been installed default on server, can install repositories yourself.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [all variants] Analyze and archive incoming messages to filesystem


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support