Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-21-2009, 09:54 AM
|
#1
|
LQ Newbie
Registered: Aug 2007
Location: Stuttgart, Germany
Distribution: Debian, Ubuntu, Darwin, FreeBSD
Posts: 18
Rep:
|
Keeping sendmail from stripping manually inserted header
I've got an OpenEMM installation to send newsletters, which is working fine. The problem is that I need to use DKIM to sign my outbound mails, so as to not end up in any spam filters. As OpenEMM itself doesn't support DKIM I wrote a perl script that inserts the required header and moves the generated qf and df files to the sendmail mailqueue.
The mails get sent but before that sendmail removes the inserted DKIM headers again.
I put quite some effort into learning how to set up sendmail and its basic administration but this particular problem beats me. Can someone give me a hint why sendmail does that and where I can change this behavior? I've got a deadline to meet, so any help we be greatly appreciated! :-)
BTW: Unfortunately, I do have to use sendmail as it's the only MTA supported by OpenEMM.
Thanks in advance!
edderkop
|
|
|
10-21-2009, 11:58 AM
|
#2
|
Moderator
Registered: May 2001
Posts: 29,415
|
|
|
|
10-22-2009, 03:56 AM
|
#3
|
LQ Newbie
Registered: Aug 2007
Location: Stuttgart, Germany
Distribution: Debian, Ubuntu, Darwin, FreeBSD
Posts: 18
Original Poster
Rep:
|
Quote:
Originally Posted by unSpawn
|
I do, in fact, use the DKIM milter - and that might actually be the problem, I'll try disabling it in the sendmail.mc and see if my header still gets removed.
I guess I could have it signed by the milter but we want to have a more flexible approach by implementing our own signer functionality so that the signed messages can either be sent to the system-wide sendmail (the way it's handled now) or back to OpenEMM's own sendmail process. The problem is that OpenEMM uses a home-brewed sendmail implementation and the various parts of the mailer functionality (such as generating the mailings, adding headers, passing the mailings to the MTA...) are distributed on several different parts of the source distribution, implemented in Java, Python and C. As im somewhat proficient in Java, I tried to implement the signer functionality in the source code but finally gave up as it turned out that that solution would be far more complicated and thus time-consuming than I had assumed initially. It's feasible but I need a quicker solution, at least for the time being. So I got the idea to interrupt the sending process, grab the generated mailings, sign them and move them on to the system-wide sendmail process.
In fact, I had totally forgotten about the DKIM-milter and anyway it doesn't appear to be correctly set up as my outbound mails don't get signed. But the plugin might be responsible for removing the headers.
Anyway, thanks for your reply. I will post my progress here.
|
|
|
10-23-2009, 02:40 AM
|
#4
|
LQ Newbie
Registered: Aug 2007
Location: Stuttgart, Germany
Distribution: Debian, Ubuntu, Darwin, FreeBSD
Posts: 18
Original Poster
Rep:
|
I found the mistake - my header was malformed. Everything's working fine now. Thanks for your help, unSpawn. :-)
|
|
|
04-20-2011, 06:44 PM
|
#5
|
LQ Newbie
Registered: Apr 2011
Posts: 1
Rep:
|
More detail please
"I got the idea to interrupt the sending process, grab the generated mailings, sign them and move them on to the system-wide sendmail process."
Can you give more specific detail to code modification please?
Thank you very much.
|
|
|
All times are GMT -5. The time now is 07:15 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|