Page 1 of 1

Simple relay question

Posted: Fri Jul 14, 2006 3:49 pm
by linuxboy
Hello All,

I am trying to configure Scalix to allow email relaying from our Asterisk server (192.168.2.1) (Aseterisk sends out emails with and attached voicemail message to the recipient). Our Asterisk server is on the 192.168.2.0/24 network and our Scalix box is on the 192.168.0.0/24 network. I can ping from and to both machines, can telnet to port 25 on the Scalix box from our Asterisk server. However, I can't get Scalix to allow email relaying from Asterisk.
I added the ip address of the Asterisk box to the smtpd.conf file (see below), ran omsendin and restarted the scalix smtpd service and also restarted Sendmail. However, when I go into the sendmail.cf file I don't see any reference to the IP address I added in Scalix's smtpd.conf file.
I also added the Asterisk server's IP adderess and anme to my /etc/hosts file. Still nothing. What am I doing wrong??

--- snippet of my smtpd.conf file ---
RELAY accept 127.0.0.1
RELAY accept .ourcompanydomain.com
RELAY accept 192.168.2.1
RELAY Log_Reject ALL

Posted: Fri Jul 14, 2006 4:07 pm
by ScalixSupport
Can you try a simple telnet SMTP session from the Asterisk server to the Scalix server and post the results ?

Cheers

Dave

Posted: Fri Jul 14, 2006 4:20 pm
by linuxboy
Sorry, I have to plead ignorant here. After I telnet to port 25 what commands should I give the Scalix server? Or do you simply want me to telnet to 25 and post the first results the Scalix server replys with?

Thanks for the help.

Posted: Fri Jul 14, 2006 6:02 pm
by ScalixSupport
This is a good link to walk you through the process:

http://www.yuki-onna.co.uk/email/smtp.html

Regards,
Don

Posted: Fri Jul 14, 2006 6:43 pm
by linuxboy
Dave,

Thanks for the link. Going through the mail commands helped me diagnose my problem. What was the cause was I did not have the correct host/domain pair listed in the scalix servers /etc/hosts file. Asterisk was using asterisk@asterisk1.local . I simply added this to the hosts file, restarted sendmail and blam! Before I simply guessed what Asterisk was using as the "FROM" user. My bad.

As always thanks for your help. I never have to worry if I am going to get sound advice from you guys. The support is awesome! Have a great weekend.

Mike

Posted: Fri Jul 14, 2006 6:44 pm
by ScalixSupport
Credit where it is due, that was Don with the previous reply.

Cheers

Dave