Operating Systems > Linux and UNIX

command line mail sender !

<< < (3/3)

Master of Reality:
'sorry, your envelope send domain must exist'
this must mean that because i didnt specify a sender it didnt work... or because i didnt send it through a smtp server?

the other error fomr another e-mail address was 'Invalid mail address, must be fully qualified do main'.

Uhh... okay, i didnt specify the sender so it said that the sender was 'root@localhost' or 'root@server' and that is why it was invalid.

Master of Reality:

quote:Originally posted by -=f00bar=-:
So void - lemme get this straight: (correct me plz!)

 - Sendmail can send mail to external users, that is, someone who is not connected to your local network, and picks his mail up from an external server (like pop or web-based)
 - So you do not have to specify an SMTP server just to get the message sent
 - But CAN you send via an external SMTP server ? (e.g. mail.quakeguy.myweb.nl is mine) and how ? (maybe it will help you get rid of spam control)

And some q's:
 - Is it possible, in linux scripting, to make labels by using c-style ':' ?
like:


--- Code: ---
--- End code ---
[/b]
--- End quote ---

there is a line in /etc/mail/sendmail.mc that will allow you to specify an externel smtp server (line 13), it is commented out by default.

voidmain:
m0r, you can configure sendmail to send mail out directly without going through an external SMTP server. And the error messages you have received indicate that your sendmail is not configured properly. Sendmail is *highly* configurable.  In fact if you were to buy the "Bat Book" (O'Reilly book on Sendmail) you will find that it is about 2 inches thick.  The sendmail configuration file is "/etc/sendmail.cf".  However, it is such a complex configuration file you normally want to change the major options in "/etc/mail/sendmail.mc" and then generate a new sendmail configuration file (/etc/sendmail.cf) by typing:

# m4 /etc/mail/sendmail.mc > /etc/sendmail.cf

then restarting sendmail.

And yes f00bar, sendmail does not need an external SMTP server, in fact if you start the sendmail service on your box it will actually become an SMTP server (most email servers on the internet run Sendmail or qmail).  I use it on all of my mail servers.  I have around 20 of them.

m0r, you may want to look at this snippet of documentation.  I believe you'll need to look at the (DM*) directive:

http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/ref-guide/s1-email-sendmail.html

[ July 15, 2002: Message edited by: VoidMain ]

foobar:
Ah great.
I will do some digging in the manpages and the config files, i'm sure i'll get wiser of it, and make it do what i want.

Master of Reality:
I got one of the messages that I sent.
It seems to work  
now i just have to make something to send out to all the Bobs

Navigation

[0] Message Index

[*] Previous page

Go to full version