Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SMTP server

Status
Not open for further replies.

scienzia

Programmer
Feb 21, 2002
160
IT
Hi,

I have an hardware firewall that is able to send info by email. I need to specify an SMTP server, the address to send to, and the address "from".

How can I configure my linux server to have SMTP active, to accept the connection from the firewall (without login/password) and to send it to my email address?

I am using Debian, kernel 2.4.27-1-386

Thanks in advance
 
For the first part, postfix as smtp is a good choise and pretty with debian, apt-get install postfix, the following debconf configuration lets you set the hostname and such. pretty optional.
All configs are in /etc/postfix/main.cf
Good alternative daemons are exim and qmail

After its set up and started, it just works, listening on port 25 and accepting mails to the box's name

For the second part, you can either enable the relay of your mail(s) not addressed to your box (throught another smtp) by setting relayhost = <smtp> - and adding the firewalls ip to mynetworks
Or making an active alias on the local box (/etc/aliases), and for example using procmail(1) to deliver all mails to another address.. I dunno if specifying the address directly there would work.

. Mac for productivity
.. Linux for developement
... Windows for solitaire
 
Thankyou

I installed postfix, and now I am able to send emails connecting from my PC to my SMTP server without login.

My problem now is to test IDS/IDP system to check if the firewall is configured correctly to send the email ...

 
see apt-cache show idswakeup for example

. Mac for productivity
.. Linux for developement
... Windows for solitaire
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top