LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-14-2009, 05:40 AM   #1
Nikesh
LQ Newbie
 
Registered: Oct 2006
Posts: 7

Rep: Reputation: 0
IPCOP


HI,

just installed IPCOP and its working fine. However i cannot send emails to myself. im new at this so i need some help please .

Thanks
 
Old 07-14-2009, 05:48 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
You need to include more information about what you are trying to do.

-Are you trying to send email from a user account on the machine running IPCOP to the same user account on the same machine?

-What software are you using to send the email?
 
Old 07-14-2009, 06:21 AM   #3
Nikesh
LQ Newbie
 
Registered: Oct 2006
Posts: 7

Original Poster
Rep: Reputation: 0
hi,

im trying to send email from the IPCOP serevr to myself. I have installed an addon called TRAFFICANDCONTROLREPORT where it requires me to input my email address and smtp server which i do and the the server hangs after saving these settings. When i reboot and login and look at the logs, i see that it failed to sent the mail cause of a socket error.

currently i cant telnet from my ipcop box to my emailserver either as telnet is not installed by default. some of the forums say that you must add the smtp server to your iptables file .. but the file is so huge, im not sure where to insert it in there.

Attached it the rc.firewall file which i hope that you need to make a change in
 
Old 07-15-2009, 10:09 AM   #4
mickza
Member
 
Registered: Mar 2005
Location: South Africa
Distribution: Centos, Fedora, Ubuntu desktop, IPCop
Posts: 168

Rep: Reputation: 33
There is a problem with /usr/local/bin/tcar_sendEmail supplied with the tcar tarball and the latest versions of IPCop.

Download sendEmail from http://caspian.dotconf.net/menu/Software/SendEmail/ and copy it to /usr/local/bin/tcar_sendEmail - this should solve your problem.
 
Old 07-16-2009, 09:34 AM   #5
Nikesh
LQ Newbie
 
Registered: Oct 2006
Posts: 7

Original Poster
Rep: Reputation: 0
thank you for responding. Have donloaded an installed ..
when i test running from the command line the

ERROR => Connection attempt to localhost:25 failed: IO::Socket::INET: connect: Connection refused

this seems like the ipcop box iptables need to be updated somewhere which will allow it to send mail.

Any ideas ? appreciate all the help
 
Old 07-16-2009, 10:03 AM   #6
mickza
Member
 
Registered: Mar 2005
Location: South Africa
Distribution: Centos, Fedora, Ubuntu desktop, IPCop
Posts: 168

Rep: Reputation: 33
Please confirm that you are using IPCop version 1.4.21 (the latest supported, do not use 1.9.xx testing) on a stand alone box (not virtualized). If this is so TCAR should just run with the mod I noted.
 
Old 07-16-2009, 10:14 AM   #7
Nikesh
LQ Newbie
 
Registered: Oct 2006
Posts: 7

Original Poster
Rep: Reputation: 0
yes i confirm that im running the latest version of ipcop.

i tried to do a test


root@ipcop:/usr/local/bin # ./tcar_SendEmail -f root@localhost -t nmaharaj@tcta.co.za -s 192.168.16.24
Reading message body from STDIN because the '-m' option was not used.
If you are manually typing in a message:
- First line must be received within 60 seconds.
- End manual input with a CTRL-D on its own line.

test
test
test
Jul 16 17:12:34 ipcop tcar_SendEmail[3379]: Message input complete.
Jul 16 17:12:38 ipcop tcar_SendEmail[3379]: ERROR => 192.168.16.24:25 returned a zero byte response to our query.
root@ipcop:/usr/local/bin #

am i doing something wrong ?
 
Old 07-16-2009, 10:47 AM   #8
mickza
Member
 
Registered: Mar 2005
Location: South Africa
Distribution: Centos, Fedora, Ubuntu desktop, IPCop
Posts: 168

Rep: Reputation: 33
I'm not sure why you are playing with the IPCop command line, all reports should be generated / mailed from the GUI.

See attached example - authorization fields optional depending on smtp server requirements.

Check you are using the same version tcar_sendEmail that I am:

Code:
root@ipcop:/usr/local/bin # tcar_sendEmail --help

tcar_sendEmail-1.55 by Brandon Zehm <caspian@dotconf.net>
As I say, it should just work
 
Old 07-17-2009, 01:04 AM   #9
Nikesh
LQ Newbie
 
Registered: Oct 2006
Posts: 7

Original Poster
Rep: Reputation: 0
yip using the same version of tcar_SendEmail. As soon as i enable the addon, the IPCOP server tries to update the rules and just stays there . I have to reboot the server, uninstall TCAR and then i can access the internet again ..
 
Old 07-17-2009, 01:34 AM   #10
mickza
Member
 
Registered: Mar 2005
Location: South Africa
Distribution: Centos, Fedora, Ubuntu desktop, IPCop
Posts: 168

Rep: Reputation: 33
Oops, you do know that as soon as you enable TCAR ALL access to RED from GREEN is blocked until you enable each PC on GREEN one by one? A TCAR config error will have a red border around it. Look at LOGS > FIREWALL LOGS for "TCAR blocks stranger" entries.
 
Old 07-17-2009, 02:09 AM   #11
Nikesh
LQ Newbie
 
Registered: Oct 2006
Posts: 7

Original Poster
Rep: Reputation: 0
pardon my ignorance, am i supposed to put in my IP address somwhere ?
 
Old 07-17-2009, 02:29 AM   #12
mickza
Member
 
Registered: Mar 2005
Location: South Africa
Distribution: Centos, Fedora, Ubuntu desktop, IPCop
Posts: 168

Rep: Reputation: 33
Here you go:

IP Address field mandatory
MAC address field optional
User email mandatory
1 Mb cost & currency fields mandatory

Warning - ticking the enabled box on the "Max incoming line" without entering a Mb limit imposes a 0 mb limit - it effectively blocks that IP address. If left unticked no limit is imposed.

Almost forget - you must scroll up and "Apply Changes" when adding a user, it can catch you out
Attached Images
File Type: png TCAR setup.png (94.4 KB, 22 views)

Last edited by mickza; 07-17-2009 at 02:46 AM.
 
Old 03-15-2011, 07:07 AM   #13
singh.deep
LQ Newbie
 
Registered: Aug 2010
Posts: 15

Rep: Reputation: 0
Question TCAR is not sending emails

Hi,
I am trying to build a powerful firewall using IPCOP and its addons. I installed IPCOP 1.4.21 and TCAR TrafficControlAndReport-1.1-GUI-b2.tar.gz and i did every steps suggested by mickza, even i downloaded sendEmail 1.56 and copy it accordingly. my admin id is singh.deep001@gmail.com, i configured smtp host as smtp.gmail.com and my gmail username & password as auth username and password through tcar web gui. but when i click on send reports now i got this error.

error : Mar 15 16:24:20 ipcop tcar_sendEmail[651]: ERROR => Connection attempt to smtp.gmail.com:25 failed: IO::Socket::INET: connect: Connection timed out

even when i tested sendEmail through command promt i got the error :

Mar 15 16:37:22 ipcop sendEmail[832]: ERROR => Connection attempt to smtp.gmail.com:25 failed: IO::Socket::INET: connect: Connection timed out

Please help me. I appreciate all help soon.
 
Old 03-15-2011, 08:28 AM   #14
mickza
Member
 
Registered: Mar 2005
Location: South Africa
Distribution: Centos, Fedora, Ubuntu desktop, IPCop
Posts: 168

Rep: Reputation: 33
GMail does not work with TCAR.

Try using the mail/smtp details given to you by your ISP.
 
Old 03-20-2011, 08:30 AM   #15
singh.deep
LQ Newbie
 
Registered: Aug 2010
Posts: 15

Rep: Reputation: 0
Smile Thanks

Port 25 was blocked by my ISP, so after request he opened the port 25.
And becoz Gmail does not work with TCAR, So I used smtp.mail.yahoo.com to send mail through my yahoo id.
Its working fine now.



Quote:
Originally Posted by mickza View Post
GMail does not work with TCAR.

Try using the mail/smtp details given to you by your ISP.
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
IPCop Gianni Linux - Security 9 06-22-2006 02:57 PM
Need IPCop to IpCop VPN assistance Freddde Linux - Networking 1 09-15-2005 02:28 PM
IPCop to IPCop VPN... furrie Linux - Networking 1 11-04-2003 12:40 PM
IPCop j0hn0n1 Linux - Security 8 09-23-2003 06:15 AM
IPCop prich Linux - General 0 05-01-2003 12:40 PM


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

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