Guessing the SMTP server name.
If my ISP does not gives me the SMTP server address .
Is there any method to guess that address.
Please reply in detail because I am the beginner of JAVA
MAIL as well as JAVA.
Thank you very much.
The the IP address of the server and telnet onto port 25
i.e.
www.myisp.co.uk
nslookup myisp.co.uk
gives:
192.168.1.123
Then..
telnet 192.168.1.123 25
If you get a SMTP message thats the ISPs SMTP server.
They will prob not allow relays i.e. you to send mail using this server, but you should get a message saying 'relay not allowed' if this is the case.
They will have a range of IP addresses you you need to follow the MX records, they will lead you to the SMTP server of your ISP...
You can use
host -t mx demon.net
to get:
demon.net mail is handled (pri=50) by relay-2.mail.demon.net
demon.net mail is handled (pri=20) by internal.mail.demon.net
demon.net mail is handled (pri=50) by relay-1.mail.demon.net
Then use nslookup on relay-2.mail.demon.net to get the IP address if you want.
see http://partyvibe.com/flavour/ntools-exp.htm for tools to lookup IPs and MX records.
Hope this helps.
Regards Gareth
Similar Messages
-
Where do you put the SMTP Server Name ?
I am trying to set up the email address of the SNMP.
i can set up the Server SNMP Agents and the trap destinations, but can't find where to specifiy the SMTP Server Name i.e our company email address name [email protected]
I looked in security realms can't find it.
Any ideasHi,
Here is sample setup for AIX machine.
SETUP:
GC agent installed in AGENT_ORACLE_HOME
RDBMS installed in RDBMS_ORACLE_HOME
Database and listener up and running, monitored by Grid Control,
this implies that the AGENT_ORACLE_HOME/sysman/emd/targets.xml contains the correct credentials for the database.
The listener name given ion RDBMS_ORACLE_HOME/network/admin/listener.ora is identical to the name of that listener target in Grid Control.
AGENT_ORACLE_HOME/network/admin/sqlnet.ora must exist.
SETUP steps needed for operating system AIX:
A. AIX is using its native snmp deamon pointing to the snmpdv3 deamon (this is the default on AIX5L):
[hostname]/root> ls -l /usr/sbin/snmpd
lrwxrwxrwx 1 root system 9 Jul 24 2009 /usr/sbin/snmpd@ -> snmpdv3ne*
B. The script AGENT_ORACLE_HOME/network/snmp/peer/start_peer has needs to be corrected on AIX :
1. the locations of "whoami" needs to be corrected from "/usr/ucb/whoami" to "/bin/whoami"
2. the command starting the os snmp deamon must be changed to
$SNMPD $SNMPD_OPTIONS -p $NEW_SNMPD_PORT >snmpd.out 2>&1 &
Alternatively add two blocks for operating system AIX:
elif [ "$uname" = "AIX" ] ; then
USERID=`/bin/whoami`
SNMPD=/usr/sbin/snmpd
SNMPD_CONFIG=/etc/snmpdv3.conf
SNMPD_OPTIONS=""
BP="AIX"
TRPCMD="exit 1"
ENCAP_OPT="-s 1160"
elif [ "$uname" = "AIX" ]
then
echo "Starting $SNMPD ..."
echo "$SNMPD $SNMPD_OPTIONS -p $NEW_SNMPD_PORT >snmpd.out 2>&1 &"
$SNMPD $SNMPD_OPTIONS -p $NEW_SNMPD_PORT >snmpd.out 2>&1 &
Starting up emsubagent
None of the following processes must be upp and running: snmpd, emsubagent, master_peer, encaps_peer
The following ports must not be allocated: snmp, smux, 161, 1161, 199
run as root:
ORACLE_HOME= <full path to the AGENT_ORACLE_HOME>
export ORACLE_HOME
$ORACLE_HOME/network/snmp/peer/start_peer -a
This must start the following processes as root: master_peer, encaps_peer, snmpd
As agent ORACLE_HOME owner run
AGENT_ORACLE_HOME/bin/emctl start subagent
The snmp_*.ora files needs to be copied from AGENT_ORACLE_HOME/network/admin to RDBMS_ORACLE_HOME/network/admin
Restart the listener, query the listener status
"RDBMS_ORACLE_HOME/bin/lsnrctl status <listener_name>" must show: SNMP ON
Regards,
Kal -
We have our SMTP server under port number 141 and we should add username and password. but inside SharePoint 2013, I can only define the SMTP server name , from email, reply-to . But there are not fields to define the port number , the username and password.
So can anyone advice from where I can define the port number and other field settings for the SMTP server ?
Thanksi am no sure about user name and password. i never saw that option.
check this guide:
http://blogs.technet.com/b/tirumals/archive/2012/03/17/step-by-step-configuration-of-outgoing-emails-from-sharepoint-to-microsoft-online.aspx
http://blog.fpweb.net/configuring-an-smtp-server-for-sharepoint/#.UuANoxAo6M8
Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog
thanks for the reply, but in our case the SMTP is a separate server , and to connect to it i need to define the ; server IP /Name , port number, username & password. but in SharePoint there is no option to define the port number , and the links you
provide are regarding configuring SMTP server, while we already have an SMTP server but i need to connect SP with it . can you advice please? -
Good Morning:
I am installing Mid Tier of OCS. Could you guys give more information about the SMTP Server Name asked during installation: guidelines says: "SMTP server name for Subscriber Administrator and Users access thier passwords and log into Oracle Files". Should be this Server name the same host in wich I am installing MNidTier, or ?
Thanks in advance for any explanation.Hi!
This is asked during the files configuration. The files component will send out an email to the admin when users are synchronized and when other issues arise in the files environment. The mail server could be the one you just installed but you might choose a different one as well.
cu
Andreas -
Collaboration Server - changing the SMTP server info
We have installed the collab server. However the SMTP server info specified during the install, was incorrect. I need to change the SMTP server name. Is this configurable through any config file setting or do I need to re-install collab erver.
Any help on this would be appreciated.
Thanks.
VanitaVanita -
What version of Collab are you using? The SMTP notification settings are all accessible without re-installing. I am looking at a 3.0 Collab install and the settings are all in the plumtree\ptnotification\3.0\settings\config\config.xml file.
Hope this helps.
-- Jeff Chastain -
How to find out about the SMTP Server
Hi,
I have been trying to configure groupware in the portal - in particular I want to enable the sending of emails through the portal. I already have a how-to-guide that that seems to explain the steps quite well. However, it mentions that I need to know the SMTP Server of the email. Can you tell me how to find out about the SMTP Server? Where do I need to look for the name of it?
Thank you and regards,
KatharinaHi Katharina,
you need the SMTP server of your company. This means you can't look for it in the portal, but have to ask the responsible person in your company.
Kind regards,
dominik -
How to configure the smtp server..
i had an error when running the java mail program..
this is my program
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
import java.io.*;
import java.util.Properties;
public class MailClient
public void sendMail(String mailServer, String from, String to,
String subject, String messageBody,
String[] attachments) throws
MessagingException, AddressException
// Setup mail server
Properties props = System.getProperties();
props.put("mail.smtp.host", mailServer);
// Get a mail session
Session session = Session.getDefaultInstance(props, null);
// Define a new mail message
Message message = new MimeMessage(session);
message.setFrom(new InternetAddress(from));
message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
message.setSubject(subject);
// Create a message part to represent the body text
BodyPart messageBodyPart = new MimeBodyPart();
messageBodyPart.setText(messageBody);
//use a MimeMultipart as we need to handle the file attachments
Multipart multipart = new MimeMultipart();
//add the message body to the mime message
multipart.addBodyPart(messageBodyPart);
// add any file attachments to the message
// addAtachments(attachments, multipart);
// Put all message parts in the message
message.setContent(multipart);
// Send the message
Transport.send(message);
protected void addAtachments(String[] attachments, Multipart multipart)
throws MessagingException, AddressException
for(int i = 0; i<= attachments.length -1; i++)
String filename = attachments;
MimeBodyPart attachmentBodyPart = new MimeBodyPart();
//use a JAF FileDataSource as it does MIME type detection
DataSource source = new FileDataSource(filename);
attachmentBodyPart.setDataHandler(new DataHandler(source));
//assume that the filename you want to send is the same as the
//actual file name - could alter this to remove the file path
attachmentBodyPart.setFileName(filename);
//add the attachment
multipart.addBodyPart(attachmentBodyPart);
public static void main(String[] args)
try
MailClient client = new MailClient();
String server="smtp.canvasindia.com";
String from="[email protected]";
String to = "[email protected]";
String subject="Test";
String message="Testing";
String[] filenames ={"c:/A.java"};
client.sendMail(server,from,to,subject,message,filenames);
catch(Exception e)
e.printStackTrace(System.out);
the error is .................
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 553 Attack detected from p
ool 59.144.8.116. <http://unblock.secureserver.net/?ip=59.144.8.*>
at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584)
at javax.mail.Transport.send0(Transport.java:169)
at javax.mail.Transport.send(Transport.java:98)
at MailClient.sendMail(MailClient.java:47)
at MailClient.main(MailClient.java:84)
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 553 Attack detected fro
m pool 59.144.8.116. <http://unblock.secureserver.net/?ip=59.144.8.*>
at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1047)
... 5 more
how to configure the smtp server in my machine..
please guide me...This uses gmail account, and gmail smtp
* MailSender.java
* Created on 14 November 2006, 17:07
* This class is used to send mails to other users
package jmailer;
* @author Abubakar Gurnah
import javax.mail.*;
import javax.mail.internet.*;
import java.util.*;
public class MailSender{
private String d_email,d_password;
* This example is for gmail, you can use any smtp server
* @param d_email --> your gmail account e.g. [email protected]
* @param d_password --> your gmail password
* @param d_host --> smtp.gmail.com
* @param d_port --> 465
* @param m_to --> [email protected]
* @param m_subject --> Subject of the message
* @param m_text --> The main message body
public String send(String d_email,String d_password,String d_host,String d_port,
String m_from,String m_to,String m_subject,String m_text ) {
this.d_email=d_email;
this.d_password=d_password;
Properties props = new Properties();
props.put("mail.smtp.user", d_email);
props.put("mail.smtp.host", d_host);
props.put("mail.smtp.port", d_port);
props.put("mail.smtp.starttls.enable","true");
props.put("mail.smtp.auth", "true");
//props.put("mail.smtp.debug", "true");
props.put("mail.smtp.socketFactory.port", d_port);
props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
props.put("mail.smtp.socketFactory.fallback", "false");
SecurityManager security = System.getSecurityManager();
try {
Authenticator auth = new SMTPAuthenticator();
Session session = Session.getInstance(props, auth);
//session.setDebug(true);
MimeMessage msg = new MimeMessage(session);
msg.setText(m_text);
msg.setSubject(m_subject);
msg.setFrom(new InternetAddress(m_from));
msg.addRecipient(Message.RecipientType.TO, new InternetAddress(m_to));
Transport.send(msg);
return "Successful";
} catch (Exception mex) {
mex.printStackTrace();
return "Fail";
//public static void main(String[] args) {
// MailSender blah = new MailSender();
private class SMTPAuthenticator extends javax.mail.Authenticator {
public PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(d_email, d_password);
} -
Where(How to change the SMTP- Server
Hello,
i'm using the OAS 10.1.2.0.2
While installation OAS i entered the name of the actual working SMTP- Server.
Sending mails worked fine until today.
Now the name of the SMTP- Server has changed and i wanted to change it(the name) in the Application Server, but i didn't find one/all place(s) where i had to change the name(s) of the SMTP- Server.
Is there anyone who can help me??
Thanks a lot.
Best regards.
FlorianRefer this:
http://download.oracle.com/docs/cd/B14099_19/core.1012/b13995/reconfig.htm#sthref681
Thanks
Shail -
When sending a message using SMTP server how to find the appropriate SMTP server given the e-mail address ?
for example if I try to send an e-mail to this address
[email protected]
How do I find the name of the smtp server associated with the "someserver.com". I tried using
smtp.someserver.com but it did not work for all servers.When sending a message using SMTP server how to find
the appropriate SMTP server given the e-mail address
for example if I try to send an e-mail to this
address
[email protected]
How do I find the name of the smtp server associated
with the "someserver.com". I tried using
smtp.someserver.com but it did not work for all
servers. Please check the following:
http://forum.java.sun.com/thread.jsp?forum=43&thread=381655&tstart=0&trange=15
Just to add to this, after you query the DNS server, it may return you a whole set of ip addresses with priorities. You must start with the highest priority and go ahead.
cheers
Projyal -
Can't send mail, get message: the smtp server rejected the password. I tried lock and unlock keychain. I tried unlock captcha. Gmail works okay, it is Mail that does not. Help!!
Hi
You need to check with your ISP whether or not the send mail server (SMTP) requires a password. Some do, but many do not. When you know the correct password to send mail, then you need to tell Mail as follows:
Mail menu > Preferences > Accounts > Select the account
Click on the Outgoing Mail Server (SMTP) combo box, and select Edit SMTP Server List...
In the Account Information tab put the server name
In the Advanced Tab, set up the authentication information from your ISP.
Good luck
Bob -
Hi i had developed one application using java mail.
when i run that it shows the could not connect . sendFailedException
why it is?
and how to know thw smtp server name in my machine?Read the JavaMail FAQ.
-
How to find SMTP server name on AIX 5.3 ?
Hi All/Guru
how can i find SMTP Server name on my aix server which i need to configure E-mail notification for database alerts.
Thanks in advance.
TinaCheck in the file /etc/sendmail.cf
-
How to find the smtp server on a linux box?
Hello,
I am trying to set up Notification Methods in OEM and I need to know the SMTP server and port. Which command can I use on Linux to find this information? Thank you in advance.Netstat is not necessarily the right tool for this task.
Sorry, but "netstat -a | grep 25" will not be useful. For example:
netstat -a | grep 25
unix 2 [ ] DGRAM 128925
unix 3 [ ] STREAM CONNECTED 11825 Better grep for "smtp". For example:
netstat -a | grep smtp
tcp 0 0 vm015.example.com:smtp *:* LISTEN
lsof is a better tool, but requires "root" or superuser privileges. For instance:
lsof -i :smtp
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
sendmail 3098 root 4u IPv4 13077 TCP vm015.example.com:smtp (LISTEN)Keep in mind however that processing and routing email in is usually a more complex task and involves either to know firewall and mail gateway configurations, or ask your mail administrator. The local mail server may not be permitted to relay email to the company wide smtp gateway depending on routing policies. -
How do i create a mail box in the SMTP server thru a java program
How do i create a mail box in the SMTP server thru a java program. If it is possible thru a java program.pls suggest a mail server compatible for the above possibility to work.
pls help ....Please let me know if it is not at all possible to
create a user account automatically thru a program
(java) in a mail server... how does yahoo work
then..does he manually add a user to the mail
server...By talking to a web server not a mail server.
>
Is not there any mail server that will allow us to
create mailboxes for my java program.. how do the
other web account services work..
As I said mail servers do have management interfaces. You need to find one and then determine what the management interface is. -
How to setup the SMTP server in Oracle apps?
Hi,
How to setup the SMTP server in Oracle Apps? Is it mandatory to keep the SMTP server on the same host where the Oracle data base is installed? Also can someone help how we can set up the SMTP server on different host (not the Database server) and we can use the same for Workflow notification mailer.
Thanks,
Bijoy
Edited by: user12070886 on Feb 6, 2013 4:26 AM
Edited by: user12070886 on Feb 6, 2013 4:27 AMHow to setup the SMTP server in Oracle Apps? Is it mandatory to keep the SMTP server on the same host where the Oracle data base is installed? No, it is not mandatory. Also please note that the mails are sent out from concurrent manager mode. Not from the database node.
Also can someone help how we can set up the SMTP server on different host (not the Database server) and we can use the same for Workflow notification mailer.
>
It depends on the operating system you are using. If you are using *nix then sendmail needs to be configured.
Thanks
Maybe you are looking for
-
How can I share a folder between two users on the same iMac?
I have an iMac with 2 user accounts and I want to share a folder between them. I have gone on to system preferences>sharing and turned on file sharing. I have also got the 'Get Info' thing up, selected 'Shared Folder' and added the other user to the
-
Can no longer access .mac, mail, msn messenger etc on wireless network
have a wireless network in our house through an airport. but .mac login page does not load, mail will not access my email and things like msn messenger just do not login. does not work on either my macbook, imac g5 or the g5 tower. no idea what is wr
-
I have a problem with my Nomad jukebox3 20gb. I was listening to some music while the player stopped. i tryed to light it but appared the " Rescue Mode V.3" so I tryed to "clean up" of "Format all" but it said "hard disk problem". What it means? Is t
-
Android package contents in Flash Builder 4.5 : file list doesn't update
I keep hitting what looks like a bug in Flash Builder 4.5, and I'm wondering if anyone else has seen it or can help me find a workaround. The problem occurs when I choose Export Release Build... and try to build an APK for Android. In the second scre
-
Isight Camera is slow with photobooth
Hi , My isight camera in photobooth is slow or delay for a second or 2 when capturing photos or video record anything. Is like if i smile to the camera , the isight in photobooth will only show it after a second or 2. Is there anyway to solve it or s