LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-27-2010, 07:59 PM   #1
Smix
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Rep: Reputation: 0
Sendmail - Creating queue files directly


I am directly creating "qf" & "df" files into the sendmail queue folder and then processing this queue by command line. This is the only way to export data and email from this old application I am stuck with.

This works quite well in my test enviornment but I am really new to linux/sendmail and just looking for any feedback on this process. Is this direct creation of queue files safe and any pitfalls that I should be aware of?
 
Old 07-29-2010, 05:33 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,994
Blog Entries: 54

Rep: Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745
Quote:
Originally Posted by Smix View Post
This is the only way to export data and email from this old application I am stuck with.
Sounds intriguing. What application dared to disturb tranquility and invade the realm of completely uneventful admin nirvana? ;-p


Quote:
Originally Posted by Smix View Post
Is this direct creation of queue files safe and any pitfalls that I should be aware of?
If your queue file creator does duplication detection, handles errors and sets ownership and DAC rights correctly and places the queue files in a queue no other application writes to you may have covered most of what the MTA would do itself. BTW, what do you create those queue files with?
 
Old 07-29-2010, 08:47 PM   #3
Smix
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Hi unSpawn, thanks for getting back to me.

Its a custom database app written in "Superbase 2001" which I have very little knowledge of and the whole thing is being replaced in a year anyway. What I have managed to do is to create a little macro in this software to output "qf,df" txt files and put them in this folder "var/spool/customqueue"

The content of the qf file are:
S<failto@from.com>
R<to@to.com>
H??From:<from@from.com>
H??To: <to@to.com>
H??Subject: Hello World
H??MIME-Version: 1.0
H??Content-Type: multipart/alternative; boundary="--my_email_part"
.

Then I call this command "/usr/sbin/sendmail -oQ/var/spool/customqueue-q" to process the queue.

I have not built any error handling or the other MTA functions you mentioned but sendmail seems to be taking over it, for example if an email is deferred, the qf file is updated appropriately and the email retried later.

What do you think, is this way of email sending reliable for a live environment or a real bad hack destined to blow up in my face?

Cheers
 
  


Reply

Tags
sendmail


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to untar my tarred mail queue folder back to the sendmail queue directory again? Md.Abul Quashem Linux - Server 6 02-16-2010 08:32 AM
qq trouble creating files in queue sachin1361 Linux - Enterprise 0 10-14-2007 07:45 AM
creating new queue type in ns2 deepthi Linux - Networking 0 03-17-2007 06:26 AM
qmail-inject: trouble creating files in queue ashfaq Linux - Software 1 06-23-2004 07:53 AM
Creating a queue bira Linux - General 5 12-15-2001 06:42 PM


All times are GMT -5. The time now is 05:54 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration