10-22-2001
Re: Sendmail+MySQL
You could replace sendmail with qmail, and there is a patch which allows you to store the messages in a mysql database. Just go to
http://iain.cx/unix/qmail/mysql.php and see what's the story about :-) If you're using FreeBSD just go to /usr/ports/mail/qmail-mysql and do a
make install
Quote:
Originally posted by CGrusden19
First off, the new site looks damn good..I use to post and it's changed for the better... On to my question... I've already searched these forums and MySQL + Sendmail's site for my answer, and came up with nothing..
My task at hand is I need to be able to STORE messages in a MySQL Database with use with Sendmail.. When a message comes in, I want sendmail to do a few checks before it saves the message..
1) Check the "userlist" table to determine whether the user is a local account, or a virtual account...
2) If so, proceed and parse the message like normal but store it in a "messages" type of table.. where it will store everything...
That's all I want to be able to do... and I know this is probably a major task.. I've found a few sites that have "patches", but have come up with nothing.. I'm NO EXPERT AT ALL, i'm just seeing if I can get some minor direction as to how to handle this.. there's no rush, so if it's advisable to read like a "sendmail" or "how-to" on how to hack the sendmail source, I will definitely do so..
I'm using Sendmail 8.9.3 with nothing special .. no procmail scripts or any qpopper...
Thanks in advance,
6 More Discussions You Might Find Interesting
1. Programming
I've searched this message board, and the newgroups THOROUGHLY, in search of any information towards implenting the MySQL API with C... I'm a "beginner" to the C language I suppose, and i've made a few functions in C that can be implemented into the source code of Sendmail/mail.local, so that any... (2 Replies)
Discussion started by: CGrusden19
2 Replies
2. UNIX for Advanced & Expert Users
MySQL on my server is down....
I figured out that the mysqld process isn't running. When I try to run it, it says it can't find mysql.sock
Any suggestions?
Here's what I can't do:
can't be root
don't have physical access (do stuff via SSH)
reinstall MySQL (need to keep the current MySQL... (8 Replies)
Discussion started by: _hp_
8 Replies
3. UNIX for Advanced & Expert Users
I recently installed mysql-standard-5.0.21-solaris9-sparc-64bit.pkg on a Solaris 9 machine (SunOS 5.9 Generic_118558-19 sun4u sparc SUNW,Ultra-250). The package installation went very smooth, however, starting mysql is a different story. I get the message below everytime I try to start mysql:
#... (2 Replies)
Discussion started by: xnightcrawl
2 Replies
4. UNIX and Linux Applications
After doing a yum install mysql mysql-server on Fedora 14 I wasn't able to fully install the packages correctly. It installed MySQL 5.1. I was getting the following error when running the:
mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)... (3 Replies)
Discussion started by: jastanle84
3 Replies
5. UNIX for Advanced & Expert Users
I am running SCO 5.0.6 and using sendmail 8.11.0 and having issues with smtp authentication. When trying to send mail the following message will kick back.
(reason: 530 5.7.1 Authentication required)
530 5.7.1 Authentication required
Not sure what needs to be tweeked in sendmail.cf but I... (1 Reply)
Discussion started by: ziggy6
1 Replies
6. Solaris
Hi all,
I have read about sendmail running as 2 separate process.
1 as a MSP, and the other as the real daemon or MTA.
In my current configuration,
the sendmail-client is disabled.
Both submit.cf and sendmail.cf are left as default untouch
I do not specified any mailhost... (3 Replies)
Discussion started by: javanoob
3 Replies
LEARN ABOUT DEBIAN
sendmail::milter
Sendmail::Milter(3pm) User Contributed Perl Documentation Sendmail::Milter(3pm)
NAME
Sendmail::Milter - compatibility interface for Sendmail::PMilter
SYNOPSIS
use Sendmail::Milter;
Sendmail::Milter::auto_setconn(NAME);
Sendmail::Milter::register(NAME, { CALLBACKS }, FLAGS);
Sendmail::Milter::main();
DESCRIPTION
This is a compatibility interface which emulates the "standard" Sendmail::Milter API.
FUNCTIONS
The following functions are available in this module. Unlike "Sendmail::PMilter", this interface involves a single, global instance of
milter data, so these functions are called without an object reference.
For each function, see the description of its object-based counterpart in Sendmail::PMilter.
Sendmail::Milter::auto_getconn(NAME[, CONFIG])
Sendmail::Milter::auto_setconn(NAME[, CONFIG])
Sendmail::Milter::main([MAXCHILDREN[, MAXREQ]])
Sendmail::Milter::register(NAME, CALLBACKS[, FLAGS])
Sendmail::Milter::setconn(DESC)
One extension function is provided by this implementation.
Sendmail::Milter::get_milter()
Returns the "Sendmail::PMilter" instance underlying this emulation layer. This allows mostly-unmodified milter scripts to set PMilter
extensions (such as dispatcher and sendmail.cf values). It is recommended, however, that new code use the object instance methods
described in Sendmail::PMilter.
EXPORTS
In order to preserve compatibility with the standard "Sendmail::Milter" interface, all SMFI* constants described in Sendmail::PMilter are
exported into the caller's namespace by default.
(Note that "Sendmail::PMilter" itself does not export these symbols by default.)
perl v5.10.1 2011-02-12 Sendmail::Milter(3pm)