11-13-2001
Sweet!
Ok thanks for the reply, I have edited the sendmail.cf file's "Mlocal" + my mail program... I have my program written in C, and it delivers whatever I tell it to, to the tables within the MySQL database, however, I might be repeating myself, But could you steer me now into the direction of how to just get ALL the data into the C program from the STDIN, then I can move onto the next step... Reason is this, if I do:
scanf("%s %s %s %s",&From,&FromAddress,&To,&ToAddress);
It will only grab the "From:" (&From), "Blah@blah.com" (&FromAddress), "To:" (&To),"Blow@blow.com" (&ToAddress)..
I want to be able to stream EVERYTHING, or atleast when it comes time to get the WHOLE message into the database... Can you tell me what command or function to grab ALL of the STDIN? I tried using "gets(message)", but came up with Segmentation errors, and tried to debug it.. but i'm just coming up with a deadend..
-Corey
7 More Discussions You Might Find Interesting
1. Linux
I have a linux box. Sendmail is work fine in this box. The only problem I am facing is whenever I send mail using the mail command to the outside world or to root@localhost, I get this error -
127.0.0.1 localhost denied from relaying
The command I used to send mail is -
Ls -l | mail -s... (0 Replies)
Discussion started by: RajaRC
0 Replies
2. Programming
(sorry for my english)
Hi, i have an app that uses MYSQL API C.. i trying do a timeout until the table is locked by an other thread , in the docs of Mysql i can see that MYSQL_OPT_READ_TIMEOUT is not implemented for linux ¿?¿?.. any body knows a way to do a timeout until the table is locked by... (0 Replies)
Discussion started by: JEscola
0 Replies
3. Programming
Hi,
I am on Ubuntu 9.04 tweaking some programs demanding MySql queries. I got the program working by installing following package:
sudo apt-get install libmysqlclient-dev
and using proper include and library folder
However I was unable to access any man pages for these C api's (Strangely... (1 Reply)
Discussion started by: dheerajsuthar
1 Replies
4. Shell Programming and Scripting
Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP.
I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Discussion started by: lowmaster
0 Replies
5. UNIX for Dummies Questions & Answers
I am trying to get stored mail out of an old mail client. I figured that the easiest way to do it is with IMAP by logging in with both clients. I can copy the mail to the server from the old mail client, and back down into the new mail client.
Rather than using a real mail account on the... (2 Replies)
Discussion started by: nixie
2 Replies
6. SCO
Environment: SCO Unix Openserver 6
Sendmail ver: 8.11.3
I just put this server online replacing it's old counterpart, same OS on new machine. There are many different servers on this domain, windowssrv.thisdomain.com, oldunix.thisdomain.com, and the new newunix.thisdomain.com just to name a... (2 Replies)
Discussion started by: checkpro
2 Replies
7. Proxy Server
PHP mail() function doesn't work.
Nor does sendmail:
loaded system configuration file /etc/msmtprc
ignoring user configuration file /home/xi/.msmtprc: No such file or directory
falling back to default account
using account default from /etc/msmtprc
host = xsi
port = 25
proxy host = (not... (1 Reply)
Discussion started by: Xcislav
1 Replies
LEARN ABOUT DEBIAN
msg2smtp
MSG2SMTP(1) General Commands Manual MSG2SMTP(1)
NAME
msg2smtp - a 'bridge' between MUA and GNU Anubis
SYNOPSIS
msg2smtp -h HOST [-p PORT] [-e HELO_DOMAIN] [-U USERNAME] [-P PASSWORD] [-m MECHANISM] [-d]
DESCRIPTION
This manual page documents briefly the msg2smtp command.
msg2smtp is a program that takes a mail message on STDIN and relays it to an SMTP server.
MUA (Mutt) --> msg2smtp.pl --> Anubis --> remote or local MTA
This can be used whenever you want to convert a mail message on STDIN and talk to an SMTP server as output. Just like sendmail do.
If you want to use this script with Mutt, add this to Mutt configuration file:
set sendmail="/PATHTO/msg2smtp.pl -h localhost"
If you run GNU Anubis on port 4000, you would put this line in your muttrc:
set sendmail="/PATHTO/msg2smtp.pl -h localhost -p 4000"
OPTIONS
A summary of options is included below:
-h HOST
hostname of SMTP server, often 'localhost',
-p PORT
port of the SMTP server,
-e HELO_DOMAIN
domain we use when to say helo to smtp server,
-U USERNAME
ESMTP auth username,
-P PASSWORD
ESMTP auth password,
-m MECHANISM
ESMTP auth mechanism - default is PLAIN,
-d shows SMTP conversation and perl debugging.
SEE ALSO
anubis(1), sendmail(1), mutt(1).
AUTHOR
msg2smtp was written by Michael de Beer <michael@debeer.org>.
This manual page was written by Krzysztof Burghardt <krzysztof@burghardt.pl>, for the Debian project (but may be used by others).
2007 Aug 26 MSG2SMTP(1)