Email help

Discuss and get help installing, using and configuring SiT!

Email help

Postby suncity » Thu Nov 17, 2011 2:39 pm

Email_outbound.png
Email_outbound.png (34.63 KiB) Viewed 413 times
Email_Inbound.png
Email_Inbound.png (45.49 KiB) Viewed 413 times


I have setup the needed scheduler and other email related in the configuration. However I am still not able to make the email work. Can someone please help. In my other Oracle setup I give incoming mail server as smtp server and input the server's IP address. What should I pick here. Please help.

Here is the scheduler looks


Scheduler[?]

17th Nov 2011 @ 9:29am

Action Start Date Interval End Date Last Ran Next Run
ChaseCustomers 2008-01-01 00:00:00 1 hour - Never Never
CheckIncomingMail 2011-11-16 02:45:00 1 minute - 17th Nov 2011 @ 9:29am 17th Nov 2011 @ 9:30am
CheckTasksDue 2008-01-01 00:00:00 1 hour - 17th Nov 2011 @ 9:29am 17th Nov 2011 @ 10:29am
CheckWaitingEmail 2008-01-01 00:00:00 1 minute - 17th Nov 2011 @ 9:29am 17th Nov 2011 @ 9:30am
CloseIncidents 2008-01-01 00:00:00 1 minute - 17th Nov 2011 @ 9:29am 17th Nov 2011 @ 9:30am
ldapSync 2008-01-01 00:00:00 1 minute - 17th Nov 2011 @ 9:29am 17th Nov 2011 @ 9:30am
PurgeExpiredFTPItems 2008-01-01 00:00:00 2 days 12 hours - 16th Nov 2011 @ 7:43pm 19th Nov 2011 @ 7:43am
PurgeJournal 2008-01-01 00:00:00 5 minutes - 17th Nov 2011 @ 9:29am 17th Nov 2011 @ 9:34am
SetUserStatus 2008-01-01 00:00:00 1 minute - 17th Nov 2011 @ 9:29am 17th Nov 2011 @ 9:30am
TimeCalc 2008-01-01 00:00:00 1 minute - 17th Nov 2011 @ 9:29am 17th Nov 2011 @ 9:30am
suncity
SiT! Fan
SiT! Fan
 
Posts: 23
Joined: Tue Sep 13, 2011 1:54 pm

Re: Email help

Postby Tomse » Fri Nov 18, 2011 1:00 pm

how does your email not work ?
can't you get mails, or doesn't it send out mails ?

mta should probably be set to pop/imap, which is the most common.

unless your incoming email server is the same as the SMTP server, you might want to look at that (write the FQDN of the pop/imap server)

SMTP is outgoing email (which you should configure in php.ini)

also take a look on the Install_Requirements and see if you're missing some php modules.

cheers
Tomse
Carsten Jensen, da-DK Translator Supporting Windows & Linux/FreeBSD installations, partial SiT developer / hacker / graphician
Live chat/support on IRC in channel #sit on freenode.net
User avatar
Tomse
SiT! Developer
SiT! Developer
 
Posts: 950
Joined: Fri Feb 20, 2009 10:51 am
Location: Somewhere near Copenhagen Denmark

Re: Email help

Postby suncity » Mon Nov 21, 2011 3:43 pm

Thanks for the reply. Email is not working in the sense after creating the incident the email should go out to person who got the incident assigned beside to the person who reported that incident. To test I also tried to do following (Send password)
Access Details Username:******, Send Password


In this case too no email goes out.

I am using the supplied VM image running on my ESX server. I am not sure what all I need to change . Can you/someone give some detail steps as how I can make email to work.
suncity
SiT! Fan
SiT! Fan
 
Posts: 23
Joined: Tue Sep 13, 2011 1:54 pm

Re: Email help

Postby Tomse » Mon Nov 21, 2011 5:07 pm

ok, for outgoing emails you'll need to edit php.ini

Code: Select all
sudo nano /etc/php5/apache2/php.ini


search for SMTP

and enter your SMTP servers IP address, for example.

Code: Select all
SMTP = 192.168.0.10

Note: ip address is probably different from yours

don't forget to restart the apache webserver after doing this.

Code: Select all
sudo apache2ctl graceful


cheers
Tomse
Carsten Jensen, da-DK Translator Supporting Windows & Linux/FreeBSD installations, partial SiT developer / hacker / graphician
Live chat/support on IRC in channel #sit on freenode.net
User avatar
Tomse
SiT! Developer
SiT! Developer
 
Posts: 950
Joined: Fri Feb 20, 2009 10:51 am
Location: Somewhere near Copenhagen Denmark

Re: Email help

Postby suncity » Mon Nov 21, 2011 5:51 pm

Thanks for the help. I followed the steps and made the changes. Still can't make email to work..

Here are some info.

Ping result

Last login: Mon Nov 21 17:38:24 2011 from 10.0.***.**
root@sit:~# ping 10.0.***.**
PING 10.0.***.** (10.0.***.**) 56(84) bytes of data.
64 bytes from 10.0.***.**: icmp_seq=1 ttl=128 time=0.425 ms
64 bytes from 10.0.***.**: icmp_seq=2 ttl=128 time=0.632 ms
64 bytes from 10.0.***.**: icmp_seq=3 ttl=128 time=0.479 ms
64 bytes from 10.0.***.**: icmp_seq=4 ttl=128 time=0.328 ms
64 bytes from 10.0.***.**: icmp_seq=5 ttl=128 time=0.558 ms
^C


---
Part of php.ini (/etc/php5/apache2/php.ini) where I added the SMTP server info.
define_syslog_variables = Off

[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = 10.0.***.**
; http://php.net/smtp-port
smtp_port = 25


After making these changes I rebooted the server and tried to send email the same way as I posed above, still I can't get email to work. I am using the same SMTP IP in many Oracle tools and its working fine.
suncity
SiT! Fan
SiT! Fan
 
Posts: 23
Joined: Tue Sep 13, 2011 1:54 pm

Re: Email help

Postby Tomse » Mon Nov 21, 2011 9:16 pm

does the email server allow smtp connections from the server SiT is running at ?

you can test that by doing a telnet to the mail server at port 25

there are several guides out there, that'll help you construct a mail manually using telnet.
you'll need to make a complete test in order to see if it allows or not.

cheers
Tomse
Carsten Jensen, da-DK Translator Supporting Windows & Linux/FreeBSD installations, partial SiT developer / hacker / graphician
Live chat/support on IRC in channel #sit on freenode.net
User avatar
Tomse
SiT! Developer
SiT! Developer
 
Posts: 950
Joined: Fri Feb 20, 2009 10:51 am
Location: Somewhere near Copenhagen Denmark

Re: Email help

Postby suncity » Tue Nov 22, 2011 2:02 pm

When I try to start a telnet session in putty at port 25 for my SIT server I get this


220 sit.localdomain ESMTP Postfix (Ubuntu)
suncity
SiT! Fan
SiT! Fan
 
Posts: 23
Joined: Tue Sep 13, 2011 1:54 pm

Re: Email help

Postby Tomse » Tue Nov 22, 2011 4:17 pm

you should do, from the SiT VM server

telnet 10.0.***.** 25

where 10.0.***.** is your mailserver as defined in php.ini

what you did was doing a telnet to localhost, or from a remote machine to the SiT Server.

the exercise here is to see if the mailserver accepts connections from the SiT Server
Carsten Jensen, da-DK Translator Supporting Windows & Linux/FreeBSD installations, partial SiT developer / hacker / graphician
Live chat/support on IRC in channel #sit on freenode.net
User avatar
Tomse
SiT! Developer
SiT! Developer
 
Posts: 950
Joined: Fri Feb 20, 2009 10:51 am
Location: Somewhere near Copenhagen Denmark

Re: Email help

Postby suncity » Tue Nov 22, 2011 5:47 pm

This is what I get when I do the telnet to my 10.0.***.** SMTP server from my SiT VM


root@sit:~#
root@sit:~# telnet 10.0.***.**
Trying 10.0.***.**...
Connected to 10.0.***.**.
Escape character is '^]'.

------------------------
Help is Ctrl-? or Ctrl-w
Exit is Ctrl-x
------------------------
Password:

After this I can see the X-session window for the SMTP server.
suncity
SiT! Fan
SiT! Fan
 
Posts: 23
Joined: Tue Sep 13, 2011 1:54 pm

Re: Email help

Postby Tomse » Tue Nov 22, 2011 8:16 pm

you forgot port 25

Code: Select all
telnet 10.0.***.** 25
Carsten Jensen, da-DK Translator Supporting Windows & Linux/FreeBSD installations, partial SiT developer / hacker / graphician
Live chat/support on IRC in channel #sit on freenode.net
User avatar
Tomse
SiT! Developer
SiT! Developer
 
Posts: 950
Joined: Fri Feb 20, 2009 10:51 am
Location: Somewhere near Copenhagen Denmark

Next

Return to Installing, Configuring and Using SiT!

Who is online

Users browsing this forum: No registered users and 1 guest

cron