Gaston
01-25-2003, 09:57 PM
Zekeman,
Looking at the verbose output of your command, you're
actually sending the mail to yourself on local server.
Running mail/elm/pine, as root, and you'll see that the email
is sent yourself.
Subject: test me
test
.
Cc:
test@test.com... Connecting to localhost.localdomain. via relay...
220 linux.localdomain ESMTP Sendmail 8.12.5/8.12.5; Fri, 24 Jan 2003 16:26:23 -0
You might want to set the smart relay to something in your
sendmail.cf file, for example to test.com, this might have
security indications, though, hackers might start using your
box as mail relay, read more about this later.
Just edit sendmail.cf, and change the following:
# "Smart" relay host (may be null)
DSlocal
to
DSmailserver.test.com
Where mailserver is their mailserver name
If you want to and you only need to send mails from your
server, in sendmail startup script change the sendmail
to only run in queue mode, ie, it will only check the queue
and send mails but not receive anything. This will disallow
anyone relaying mails via your box.
For example, to run the queue every 30 mins, do the following,
in the startup script find the line which reads something like:
/usr/lib/sendmail -bv -15m
and change it to:
/usr/lib/sendmail -q30m
Then just start|stop sendmail
I strongly suggest that you read the FAQ's at http://www.sendmail.org
I would suggest that you try postfix or qmail, both are much
more secure out of the box, faster and easier to configure
than sendmail
http://www.postfix.org
http://www.qmail.org/
Also please apply the changes to your iptables as suggested
on earlier thread.
If you insist using sendmail, please read the FAQ's and prepare
yourself for loads of work. The O'reilly Sendmail book's the best
if you're planning to get serious about sendmail.
Looking at the verbose output of your command, you're
actually sending the mail to yourself on local server.
Running mail/elm/pine, as root, and you'll see that the email
is sent yourself.
Subject: test me
test
.
Cc:
test@test.com... Connecting to localhost.localdomain. via relay...
220 linux.localdomain ESMTP Sendmail 8.12.5/8.12.5; Fri, 24 Jan 2003 16:26:23 -0
You might want to set the smart relay to something in your
sendmail.cf file, for example to test.com, this might have
security indications, though, hackers might start using your
box as mail relay, read more about this later.
Just edit sendmail.cf, and change the following:
# "Smart" relay host (may be null)
DSlocal
to
DSmailserver.test.com
Where mailserver is their mailserver name
If you want to and you only need to send mails from your
server, in sendmail startup script change the sendmail
to only run in queue mode, ie, it will only check the queue
and send mails but not receive anything. This will disallow
anyone relaying mails via your box.
For example, to run the queue every 30 mins, do the following,
in the startup script find the line which reads something like:
/usr/lib/sendmail -bv -15m
and change it to:
/usr/lib/sendmail -q30m
Then just start|stop sendmail
I strongly suggest that you read the FAQ's at http://www.sendmail.org
I would suggest that you try postfix or qmail, both are much
more secure out of the box, faster and easier to configure
than sendmail
http://www.postfix.org
http://www.qmail.org/
Also please apply the changes to your iptables as suggested
on earlier thread.
If you insist using sendmail, please read the FAQ's and prepare
yourself for loads of work. The O'reilly Sendmail book's the best
if you're planning to get serious about sendmail.