I am using spring to send mail and for some reason its stripping the from email address. I ma sending the complete address form the sender to the mails server.
Following is the log
10.105.21.299, taq02, 5/4/2010, 14:50:32, SMTPSVC1, taser10, 10.100.
20.106, 2250, 11, 199, 250,
0, EHLO, -, taq02,
10.105.21.299, taq02, 5/4/2010, 14:50:32, SMTPSVC1, taser10, 10.100.
20.106,
0, 14, 34, 250,
0, MAIL, -, FROM:<{}>,
10.105.21.299, taq02, 5/4/2010, 14:50:32, SMTPSVC1, taser10, 10.100.
20.106,
0, 32, 35, 250,
0, RCPT, -, TO:<
[email protected]>,
10.105.21.299, taq02, 5/4/2010, 14:50:32, SMTPSVC1, taser10, 10.100.
20.106,
0, 681, 130, 250,
0, DATA, -, <27317520.11273009832239.JavaMail.root@taq02>,
10.105.21.299, taq02, 5/4/2010, 14:50:32, SMTPSVC1, taser10, 10.100.
20.106,
0, 4, 78, 240, 2265, QUIT, -, taq02,
148.142.126.203, OutboundConnectionResponse, 5/4/2010, 14:50:33, SMTPSVC1, TASER10, -, 1110,
0, 95,
0,
0, -, -, 220 *******************************************************************************************,
148.142.126.203, OutboundConnectionCommand, 5/4/2010, 14:50:33, SMTPSVC1, TASER10, -, 1110,
0, 4,
0,
0, EHLO, -, TASER10.ccdomain.com,
148.142.126.203, OutboundConnectionResponse, 5/4/2010, 14:50:33, SMTPSVC1, TASER10, -, 1188,
0, 65,
0,
0, -, -, 250-acsinet11.emailserver.com Hello [4.79.35.186], pleased to meet you,
148.142.126.203, OutboundConnectionCommand, 5/4/2010, 14:50:33, SMTPSVC1, TASER10, -, 1188,
0, 4,
0,
0, MAIL, -, FROM:<{}@TASER10> SIZE=945,
148.142.126.203, OutboundConnectionResponse, 5/4/2010, 14:50:33, SMTPSVC1, TASER10, -, 1328,
0, 34,
0,
0, -, -, 250 2.1.
0 <{}@TASER10>... Sender ok,
148.142.126.203, OutboundConnectionCommand, 5/4/2010, 14:50:33, SMTPSVC1, TASER10, -, 1328,
0, 4,
0,
0, RCPT, -, TO:<
[email protected]>,
148.142.126.203, OutboundConnectionResponse, 5/4/2010, 14:50:33, SMTPSVC1, TASER10, -, 1375,
0, 87,
0,
0, -, -, 553 5.1.8 <
[email protected]>... Domain of sender address {}@TASER10 does not exist,
148.142.126.203, OutboundConnectionCommand, 5/4/2010, 14:50:33, SMTPSVC1, TASER10, -, 1375,
0, 4,
0,
0, RSET, -, -,
148.142.126.203, OutboundConnectionResponse, 5/4/2010, 14:50:33, SMTPSVC1, TASER10, -, 1407,
0, 21,
0,
0, -, -, 250 2.
0.0 Reset state,
148.142.126.203, OutboundConnectionCommand, 5/4/2010, 14:50:33, SMTPSVC1, TASER10, -, 1422,
0, 4,
0,
0, RSET, -, -,
The mail server is taser10 and the sender is on taq02 erver as follows
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.
0.xsd"
<bean id="smtpAuthenticator" class="SmtpAuthenticator">
<constructor-arg value="
[email protected]" />
<constructor-arg value="password" />
</bean>
<bean id="mailSession" class="javax.mail.Session" factory-method="getInstance">
<constructor-arg>
<props>
<prop key="mail.smtp.auth">false</prop>
<prop key="mail.smtp.socketFactory.port">465</prop>
<prop key="mail.smtp.socketFactory.class">
javax.net.ssl.SSLSocketFactory</prop>
<prop key="mail.smtp.socketFactory.fallback">
false
</prop>
</props>
</constructor-arg>
<constructor-arg ref="smtpAuthenticator" />
</bean>
<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
<property name="host" value="10.100.
20.106" />
</bean>
<bean id="mailMessage" class="org.springframework.mail.SimpleMailMessage">
<property name="from" value="
[email protected]" />
<property name="subject" value="Subject AB"/>
</bean>