LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-07-2006, 11:28 AM   #1
dclarkson
LQ Newbie
 
Registered: Oct 2006
Posts: 1

Rep: Reputation: 0
Looking for help with Linux mailserver challange


Hi,

I'm looking to find a solution to the folowing problem, so far I haven't found any software that will cope with all the requirements so I have resigned myself to the idea of having to write php scripts which are triggered by incoming email messages to a sendmail (or other linux based mail server).

I have a customer who has 2000 domains (each with only a handful of email users).

The end users themselves don't read the email, all incoming email for each account is bounced onto an email to fax service, they only see the faxes.

The main problems we are seeing as we bring the domains on board ( 300 so far ) is that replies from the customers are sent back from their fax machines to the fax number held for the email to fax account, therefore any inbound emails from efax.com must be from our customers and need to have the attached pdf inspected to decide who the end recipient is (this is OK they are using us as a bureau service). I have not been able to find any hosting accounts that will allow you to specify the redirects based on the sending email address.

The next problem is that the email adddresses in the pdf isn't always clear so sometimes get sent to a wrong recipient which will usually genreate a bounce message, if this bounce sin't trapped it causes a 40 page fax to come out at the custmoers end (they don't like that ;0) )

So this far the system is being managed by multiple pop3 mail accounts being pulled into outlook, then rulles being set in Outlook to bounce the incoming mails onto the efax service unless of course they are on the list of bounce addresses we have collected or they are from efax.com (because these would be from customers and need sending on)

My thought at the moment is to create a mysql database to hold the email addresses and the forwading efax email addresses for each one, along with a 'black list' of bounce addresses. Then write a php script to hook into the mailserver and get that to fire on each incoming messge. This would then lookup agains t the database and decide where to bounce messages onto, emails from efax.com could be sent to one central email account to be checked and sent on and bounces would be sent to another admin account so that they could be checked.


If anyone is aware of a linux application that will already handle this type of scenario then please yell, like wise ayone with any suggestons on how to put this all togehter i.e. which is the best mail server app to use etc etc, I'd love to hear from you.

Daniel
 
Old 10-10-2006, 08:34 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Hello there and welcome to LQ, hope you like it here.

I think it's an interesting challenge. My first idea was to suggest to swap the whole
Quote:
pulled into outlook, then rulles being set in Outlook to bounce the incoming mails onto the efax service unless of course they are on the list of bounce addresses we have collected or they are from efax.com (because these would be from customers and need sending on)
thing for Fetchmail + procmail routing, no functionality problem there, only more robust and less vulnerable. Inspecting PDF's, as long as they are well formatted and not encrypted, should be no problem too. But since you mentioned using databases maybe not reinvent the (whole) wheel and read http://www.onlamp.com/lpt/a/5005 for idea's which leads to http://www.dbmail.org/ of which http://www.inter7.com/index.php?page=eps or http://jem.sourceforge.net/ maybe could be framework alternatives, I don't know. Just my thoughts.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OT DARPA Challange won Lleb_KCir General 0 10-09-2005 01:25 PM
A Challange to all webwolf70 General 0 09-29-2005 07:36 PM
Linux to help power a DARPA challange car from UCF Lleb_KCir General 1 05-13-2005 12:28 AM
Re: Programming a challange Swene Programming 0 05-18-2003 03:36 PM
Linux Mailserver jriis Linux - Networking 1 06-07-2001 05:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:59 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