LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 11-17-2015, 01:31 PM   #1
howithink
LQ Newbie
 
Registered: Aug 2011
Posts: 6

Rep: Reputation: Disabled
Creating subfolders in a mailbox using sendmail


We use sendmail for automated email alerts such as info@compnayname.com or alerts@companyname.com. It's a simple sendmail configuration where these emails are created and then an alias is used to forward emails to whoever is in charge of looking at these mails. Those users then use outlook with pop3 to pull down these emails into their outlook to view these messages. So nothing stays on the server.

The problem is we also get a lot of spam sent to these emails as well. And one of our automated 3rd party system tools custom developed for us looks at one of these email and automatically generates tickets based on what comes to this email.

The issue is a lot of junk tickets are being created. To resolve this, i am being asked to create a folder within this mailbox and create a rule which will send all of the relevant emails into this folder. Then this automated tool will look inside this folder and generate tickets. This will reduce junk tickets in theory.

Does this make sense? I want to know how i can create a folder within a sendmail user mailbox and create a rule to send emails to it based on subject rules.

thanks
 
Old 11-17-2015, 05:20 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
I don't use sendmail as a Mail Transport Agent, but I don't think sendmail would be the ideal way to do this. You need a Mail Delivery Agent to receive the mail from sendmail, process it, then put it in the mailboxes.

Take a look at using procmail in conjunction with sendmail.

This link should help you get started: http://www.softpanorama.org/Mail/procmail.shtml

Here's an excellent introduction to procmail: http://userpages.umbc.edu/~ian/procmail.html#example

Last edited by frankbell; 11-17-2015 at 05:21 PM.
 
  


Reply

Tags
mailbox, rules, sendmail



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] CyrusIMAP: How can one move mailbox subfolders to another mailbox, serverside? promostage Linux - Software 1 05-27-2011 04:22 AM
imapd mailbox subfolders creation hua Linux - Server 3 03-27-2010 06:13 AM
SendMail....Mailbox quota joel_dz Linux - Software 0 08-04-2006 08:46 AM
Sendmail Mailbox Quote restriction varunbihani Linux - General 4 03-28-2005 09:26 AM
Sendmail mailbox Quota da_tibmeister Linux - Networking 1 07-20-2004 09:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 01:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration