Configure Mail relay?

Hi all,

I installed Sun java system messaging server 2005Q4.

I checked mail server again and have a problem as below:

1. When I try telnet from NON-INTERNAL IP MAPPING IP:

telnet a.b.c.d 25

220 mail.vnnic.vn -- Server ESMTP (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))

HELO mail

250 mail_server OK, [m.n.p.q].

MAIL FROM: user@my_domain

250 2.5.0 Address Ok.

RCPT TO: user@yahoo.com

550 5.7.1 Relaying not allowed: user@yahoo.com

2. Now if I do smtp connection from INETRNAL IP:

telnet 127.0.0.1 25

220 mail.vnnic.vn -- Server ESMTP (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))

HELO mail

250 mail_server OK, [127.0.0.1].

MAIL FROM: user@my_domain

250 2.5.0 Address Ok.

RCPT TO: user@yahoo.com

250 2.1.5 user@yahoo.com OK.

Please help me to solve this problem.

Rgds.

Thanks.

[969 byte] By [thanh_nguyen1981a] at [2007-11-26 22:22:26]
# 1

Hi,

> I installed Sun java system messaging server 2005Q4.

> I checked mail server again and have a problem as

> below:

>

> 1. When I try telnet from NON-INTERNAL IP MAPPING

> IP:

> telnet a.b.c.d 25

> 220 mail.vnnic.vn -- Server ESMTP (Sun Java System

> Messaging Server 6.2-3.04 (built Jul 15 2005))

> HELO mail

> 250 mail_server OK, [m.n.p.q].

> MAIL FROM: user@my_domain

> 250 2.5.0 Address Ok.

> RCPT TO: user@yahoo.com

> 550 5.7.1 Relaying not allowed:

> user@yahoo.com

>

> 2. Now if I do smtp connection from INETRNAL IP:

> telnet 127.0.0.1 25

> 220 mail.vnnic.vn -- Server ESMTP (Sun Java System

> Messaging Server 6.2-3.04 (built Jul 15 2005))

> HELO mail

> 250 mail_server OK, [127.0.0.1].

> MAIL FROM: user@my_domain

> 250 2.5.0 Address Ok.

> RCPT TO: user@yahoo.com

> 250 2.1.5 user@yahoo.com OK.

>

> Please help me to solve this problem.

This isn't a problem, this is exactly the correct behaviour. Anything else would open your email server up to *massive* abuse - that's why this rule is in place.

If you want to be able to relay emails from a non-INTERNAL_IP address, you can either:

-> add the IP address/range to the INTERNAL_IP table

-> use TLS/SASL and log in as a user - that way you will be put onto the tcp_auth channel and will be able to send the email.

Shane.

shane_hjortha at 2007-7-10 11:20:55 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 2

Thanks for your help.

Can you show me the way to add IP address/arrange to the INTERNAL_IP table? I do not know to do it. Example: I want to configure the host that have IP address a.b.c.d/24 can sent email to outside. What can I do? What file do I have to edit?

Rgds,

Thanks.

thanh_nguyen1981a at 2007-7-10 11:20:55 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 3

Hi,

> Can you show me the way to add IP address/arrange to

> the INTERNAL_IP table? I do not know to do it.

> Example: I want to configure the host that have IP

> address a.b.c.d/24 can sent email to outside. What

> can I do? What file do I have to edit?

You edit the mappings file. I recommend you read the Sun Messaging Server Admin Guide if you need guidance, this is all documented.

You will need to add a line like the following to the INTERNAL_IP table definition:

$(a.b.c.d/24) $Y

Then rebuild config/restart MTA.

Shane.

shane_hjortha at 2007-7-10 11:20:55 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 4

Thank you Shane,

Thank you for your help. I did it follow your help and my mail server worked exactly.

I have a problem want to ask you about Symantec Mail Security for SMTP 5.0. Can you help me?

I want to install Symantec Mail Security for SMTP 5.0 and JSM 6 2005Q4 on the same server but I can not.

Rgds,

Thanh.

thanh_nguyen1981a at 2007-7-10 11:20:55 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 5

Hi,

> Thank you for your help. I did it follow your help

> and my mail server worked exactly.

Good to hear.

> I have a problem want to ask you about Symantec Mail

> Security for SMTP 5.0. Can you help me?

> I want to install Symantec Mail Security for SMTP 5.0

> and JSM 6 2005Q4 on the same server but I can not.

I know nothing about Symantec Mail Security software, I suggest you get assistance from Symantec - or if you are lucky somebody else reading this forum knows something and can help.

Shane.

shane_hjortha at 2007-7-10 11:20:55 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 6

> Thank you Shane,

>

> Thank you for your help. I did it follow your help

> and my mail server worked exactly.

> I have a problem want to ask you about Symantec Mail

> Security for SMTP 5.0. Can you help me?

> I want to install Symantec Mail Security for SMTP 5.0

> and JSM 6 2005Q4 on the same server but I can not.

All you need is to configure JSM to hear tcp port other then 25. (let say 26)

After that installation of Symantec Mail SMTP should go smoothly.

Finally tell Symantec Mail SMTP to forward all smtp traffic to 26 port where

JSM will accept it.

By the way in this case all Relay/antiRelay configuration should be done on

Symantec Mail SMTP.

monakhv@ot.rua at 2007-7-10 11:20:55 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 7

Hi,

I do follow your instruction:

1. Configure JSM to hear tcp port other then 25 (using port 30):

- vi dispatcher.cnf

- set:

[SERVICE=SMTP]

PORT=30

- imsimta cnbuild

- imsimta restart dispatch

2. Install Symantec Mail Security for SMTP 5.0:

- Inbound messaging: using port 25.

- Outbound messaging: using port 30

But, when I try sending mail, I have a problem:

1. When I try telnet from NON-INTERNAL IP MAPPING IP (using port 25): --> WRONG

telnet a.b.c.d 25

220 mail.vnnic.vn -- Server ESMTP (Sun Java System

Messaging Server 6.2-3.04 (built Jul 15 2005))

HELO mail

250 mail_server OK, [m.n.p.q].

MAIL FROM: user@my_domain

250 2.5.0 Address Ok.

RCPT TO: user@yahoo.com

554 <user@yahoo.com>: Relay access denied

2. Now if I do smtp connection from INETRNAL IP (using port 25): --> WRONG

telnet 127.0.0.1 25

220 mail.vnnic.vn -- Server ESMTP (Sun Java System

Messaging Server 6.2-3.04 (built Jul 15 2005))

HELO mail

250 mail_server OK, [127.0.0.1].

MAIL FROM: user@my_domain

250 2.5.0 Address Ok.

RCPT TO: user@yahoo.com

554 <user@yahoo.com>: Relay access denied

3. When I try telnet from INETRNAL IP (using port 30): --> OK

telnet 127.0.0.1 30

220 mail.vnnic.vn -- Server ESMTP (Sun Java System

Messaging Server 6.2-3.04 (built Jul 15 2005))

HELO mail

250 mail_server OK, [127.0.0.1].

MAIL FROM: user@my_domain

250 2.5.0 Address Ok.

RCPT TO: user@yahoo.com

250 2.5.0 Address Ok.

data

354 End data with <CR><LF>.<CR><LF>

I think Relay/antiRelay in Symantec Mail Security for SMTP 5.0 do not configure exactly?

Can you help me to do it? Pls hepl me configure detail.

Thanks.

Rgds,

Thanh.

thanh_nguyen1981a at 2007-7-10 11:20:55 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...