Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-21-2004, 03:29 AM   #1
LQ Newbie
Registered: Nov 2003
Distribution: Red Hat 8.0, Mandrake 9.1 9.2
Posts: 23

Rep: Reputation: 16
Sendmail command line examples please.

Still a newbie here.
Has anyone got any command line examples of the sendmail function ?
I have postfix setup under Mandrake 9.2, mozilla mail works fine so I guess
there is not too much wrong with postfix. However I have a PHP app that uses
the sendmail function. I am trying isolate if I have a problem with email setup
or the PHP side of things. I have looked at the man page for sendmail and trolled
around sendmail and postfix sites. I have tried a few guesses at what a manual
sendmail -q user@domian might look like , but it doesn't work. So what should
it look like ? I guess someone must have done this to test a new sendmail setup
but I haven't been able to find it. Any good examples or URL's please.
Old 07-21-2004, 05:29 AM   #2
LQ Newbie
Registered: Nov 2003
Distribution: Red Hat 8.0, Mandrake 9.1 9.2
Posts: 23

Original Poster
Rep: Reputation: 16

Found it .

sendmail -v user@domainname < test.mail

test.mail has

Subject: test mail
first line of my message
[blank line]

Last edited by leongoogs; 07-21-2004 at 05:31 AM.
1 members found this post helpful.
Old 07-21-2004, 08:23 AM   #3
Registered: Apr 2003
Posts: 802

Rep: Reputation: 88
Nice work leongoogs. A very informative link.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail from the command line Draithon Linux - Newbie 5 04-14-2011 03:57 AM
command-line sendmail dajomu Linux - Software 3 08-24-2005 03:45 AM
Using sendmail in command line Belghouth Mandriva 1 12-08-2004 10:55 AM
Sendmail command line usage Belghouth Debian 1 12-08-2004 10:54 AM
command line sendmail jchristman Linux - Software 4 03-13-2003 05:33 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration