Authorization error for referenced class javax/mail/Session.
All,
I am trying to compile a java source which is using session object in javax/mail/session.
I am getting the error java/lang/System: Authorization error for referenced class javax/mail/Session.
I used "import javax.mail.*;" in my java source..
I loaded both mail.jar and activation.jar using the below command in different schema other than the schema which above java source exists.
loadjava -thin -verbose -user <user>/<pwd>@<dburl> -resolve -synonym activation.jar
loadjava -thin -verbose -user <user>/<pwd>@<dburl> -resolve -synonym mail.jar
After loading, All java classes in mail.jar and activation.jar were in compiled state in that schema
Its working well in different database having the same configuration.
My oracle version is Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
I have to accomplish tried in CONSOLE TestMail.class:
C>java TestMail
Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/Partmy make.bat:
javac -g -classpath
...\Java\jre1.5.0_06\lib\activation.jar;...\jre1.5.0_06\lib\imap.jar;...\jre1.5.0_06\lib\mail.jar;...\jre1.5.0_06\lib\mailapi.jar;...\jre1.5.0_0\lib\plugin.jar;...\jre1.5.0_06\lib\pop3.jar;...\jre1.5.0_06\lib\smtp.jar;...\jre1.5.0_06\lib\javamail-1_3_2-src-jrl.zip;...\jre1.5.0_06\lib\j2ee.jar TestMail.javaWhat isn't correct?
Tanks,
Mohammad
Similar Messages
-
Always get the InternetAddress & javax.mail.Session error
<%@ page import="javax.mail.*" %>
<%@ page import="javax.mail.internet.*" %>
<%@ page import="javax.activation.*" %>
<%@ page import="java.util.*,java.io.*" %>
<%@ page contentType="text/html;charset=big5" %>
<html>
<head>
<title>JavaMail</title>
</head>
<body>
<h2>利用JavaMail來傳送電子郵件 - 附加檔案</h2>
<%
InternetAddress[] address = null;
request.setCharacterEncoding("big5");
// MultipartRequest multi = new MultipartRequest(request , "." , 5*1024*1024 , "big5");
String mailserver = "mail.dwu.edu.tw";
String From = request.getParameter("From");
String to = request.getParameter("To");
String Subject = request.getParameter("Subject");
String type = request.getParameter("Type");
String messageText = request.getParameter("Message");
String FileName = request.getParameter("FileName");
boolean sessionDebug = false;
try {
// 設定所要用的Mail 伺服器和所使用的傳送協定
java.util.Properties props = System.getProperties();
props.put("mail.host",mailserver);
props.put("mail.transport.protocol","smtp");
// 產生新的Session 服務
javax.mail.Session mailSession = javax.mail.Session.getDefaultInstance(props,null);
mailSession.setDebug(sessionDebug);
Message msg = new MimeMessage(mailSession);
// 設定傳送郵件的發信人
msg.setFrom(new InternetAddress(From));
// 設定傳送郵件至收信人的信箱
address = InternetAddress.parse(to,false);
msg.setRecipients(Message.RecipientType.TO, address);
// 設定信中的主題
msg.setSubject(Subject);
// 設定送信的時間
msg.setSentDate(new Date());
if (FileName != null)
File file = new File(FileName);
// 如果有附加檔案時,先將郵件內容部份先存起來
MimeBodyPart mbp1 = new MimeBodyPart();
// 設定郵件內容的型態為 text/plain 或 text/html
mbp1.setContent(messageText, type + ";charset=big5");
// 再來對檔案作處理
MimeBodyPart mbp2 = new MimeBodyPart();
FileDataSource fds = new FileDataSource(FileName);
mbp2.setDataHandler(new DataHandler(fds));
mbp2.setFileName(MimeUtility.encodeText(fds.getName(), "big5", "B"));
// 最後再將二者整合起來,當作一份郵件送出
Multipart mp = new MimeMultipart();
mp.addBodyPart(mbp1);
mp.addBodyPart(mbp2);
msg.setContent(mp);
else
// 若沒有檔案時,就直接存郵件內容
msg.setContent(messageText,type + ";charset=big5");
Transport.send(msg);
out.println("郵件己順利傳送");
catch (MessagingException mex)
mex.printStackTrace();
%>
</body>
</html>
==================================
i don't know why i always get the error about the type even i already add the jar file in lib folder:
InternetAddress cannot be resolved to a type
javax.mail.Session cannot be resolved to a typeWhat server are you using?
Did you follow the instructions on the JavaMail FAQ for setting up the server?
Did you restart the server? -
Hi!
I am with a problem during a sending e-mail for 3500
addressees.
In the way it process me of the one error and in log CF
Administrator shows the following error to it:
Invalid Addresses; nested exception is: class
javax.mail.SendFailedException: 550 5.7.1 Unable to relay for
What it could be?
Server Configuration:
Windows 2003 Standard with ColdFusion MX 7.02 (last update)
Best RegardsYou need to either authenticate your user or turn on relaying in your SMTP server. See the JavaMail tutorial for how to authenticate
-
Javax.mail.Session Class Cast Exception
I'm tryin' to send a mail via JNDI Java Mail Session, but when i get the look up Object, ClassCastException are thrown
When i take the o.getClass().getName() is equal to the cast class that i use. I don't know what to do.
Source --->
Object o;
context = new InitialContext();
o = context.lookup("java:comp/env/mail/mysession");
System.out.println(o.getClass().getName());
return (javax.mail.Session) o; // Exception here!DUH!
I'm using incorrect mail.jar version...
:') -
Class javax.mail.SendFailedException
Hi,
Let me know regarding java mail. I am facing the error as follows,
===============Exception=====================
javax.servlet.ServletException: Sending failed;
nested exception is:
class javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
class javax.mail.SendFailedException: 550 not local host gmail.com, not a gateway
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.sendmail3_jsp._jspService(sendmail3_jsp.java:75)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
================sourcecode============================
<%@ page import="java.util.*, javax.mail.*, javax.mail.internet.*" %>
<%
Properties props = new Properties();
props.put("mail.smtp.host", "66.34.40.98");
Session s = Session.getInstance(props,null);
MimeMessage message = new MimeMessage(s);
InternetAddress from = new InternetAddress("[email protected]");
message.setFrom(from);
InternetAddress to = new InternetAddress("[email protected]");
message.addRecipient(Message.RecipientType.TO, to);
message.setSubject("Test from JavaMail.");
message.setText("Hello from JavaMail!");
Transport.send(message);
%>
<html>
<p align="center">A Message has been sent.<br>Check your inbox.</p>
<p align="center">Click here to send another!</p>
</html>Is there any rule defined on the mailserver that BPEL is accessing via SMTP? Is it directly checking the address for validation or something?
Can you do a SMTP transaction on the BPEL server for this mail account only?
1) Create a notification process that sends a mail only for this user.
2) open a telnet session from the BPEL server commandline to do a SMTP conference.
http://nl.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol -
Unable to lookup javax.mail.Session in JNDI lookup
Hi,
We are getting java.io.NotSerializable exception when trying to lookup javax.mail.Session
in JNDI lookup.
The code is as follows:
try {
Hashtable ht = new Hashtable();
ht.put(Context.PROVIDER_URL, "t3://localhost:localport");
ht.put (Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
Context ctx = new InitialContext(ht);
try {
Object obj = ctx.lookup("jndiname_of_Mailsession");
session = (Session)javax.rmi.PortableRemoteObject.narrow(obj, Session.class);
} catch (Exception ex1) {
ex1.printStackTrace();
The exception stacktrace is as follows:
javax.naming.ConfigurationException. Root exception is java.rmi.MarshalException:
error marshalling return; nested exception is:
java.io.NotSerializableException: javax.mail.Session
java.io.NotSerializableException: javax.mail.Session
We are using Weblogic 6.0 SP2.
Any clue will be helpful to us.
Thanks.Hello Sumit
You've got this exception because javax.mail.Session is not serializable. It
does not depend on whatever implementation you use. In fact you can only use
the mail session you set up when you are in the server. I mean, when you try
to use it from an EJB, http bean session or whatever code that runs in the
weblogic server. Weblogic does not give a Serialized copy of the session to
the client but directly a reference on the only one Session created at boot
time, even if you lookup for it.
In your exemple, you try to get a reference on a Session from a client
program. It cannot work ! Session is not Serializable.
Hope this help
dom
"Sumit " <[email protected]> a écrit dans le message news:
3b3ac101$[email protected]..
>
Hi,
We are getting java.io.NotSerializable exception when trying to lookupjavax.mail.Session
in JNDI lookup.
The code is as follows:
try {
Hashtable ht = new Hashtable();
ht.put(Context.PROVIDER_URL, "t3://localhost:localport");
ht.put (Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
Context ctx = new InitialContext(ht);
try {
Object obj = ctx.lookup("jndiname_of_Mailsession");
session = (Session)javax.rmi.PortableRemoteObject.narrow(obj,Session.class);
} catch (Exception ex1) {
ex1.printStackTrace();
The exception stacktrace is as follows:
javax.naming.ConfigurationException. Root exception isjava.rmi.MarshalException:
error marshalling return; nested exception is:
java.io.NotSerializableException: javax.mail.Session
java.io.NotSerializableException: javax.mail.Session
We are using Weblogic 6.0 SP2.
Any clue will be helpful to us.
Thanks. -
Javax.mail.Session
I am trying to write a program to send email. I have problem when I tried to compile my prog. They are something like these:
Method getInstance(java.util.Properties)
not found in class Session.
Session session = Session.getInstance(props);
^
Incompatible type for constructor. Can't convert Session to javax.mail.internet.MimeMessage.
Message message = new MimeMessage(session);
^
2 errors
Anyone can help me get around these things.Its probably getting confused between javamail session and standard session
Try using javax.mail.Session instead of session.
javax.mail.Session session = javax.mail.Session.getInstance(props); -
Change the Mail-Session's type in glassfish to type javax.mail.Session
hi all guys!
com.sun.enterprise.deployment.MailConfiguration is the default type of Mail_Session in the glassfish, but I want the javax.mail.Session to construct a MimeMessage!
How can I do?
All comments will be appriciate!It sounds like you are attempting to lookup the resource using the non-portable server dependent resource name (and you are getting a non-portable server dependent result in return).
If instead, you use the portable JNDI name of the mail resource, the expected javax.mail.Session object will be returned, e.g.
Session mailSession = (Session) ic= new InitialContext().lookup("java:comp/env/mail/mobileMailSession");
Also make sure that the resource has been assigned the JNDI name you decide on ("mail/mobileMailSession" in the example above).
See also https://glassfish.dev.java.net/issues/show_bug.cgi?id=4500 and http://forum.java.sun.com/thread.jspa?threadID=5277688&tstart=75 for more information and context. -
Compilation Error for import classes not found in generated Proxy Class
Hi,
We are generating java classes for the COM dll using JCOM com2java compiler.
We are getting a compilation error for import class not found when compiling the
generated Proxy java source code. It can't find the com.bea.jcom.Dispatch class that
the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
or com.bea.jcom.Param. These are interfaces or data types or classes used by COM
library.
I added weblogic.jar to my class path and the only Dispatch class i found inside
the weblogic.jar is com.linar.jintegra.Dispatch;
We have com objects for which we want to develop an EJB client to interface with
the COM object using JCOM with Native Mode disabled.
Any help on the compilation error..I tried changing the extends for Dispatch to com.linar.jintegra.Dispatch
but the other errors are still there.
To begin with, I think the generated code should not refer to any of the COM data
types.
Any help please.
Thank you in advance,
Regards,
Rahul Srivastava
[email protected]Hi,
I resolved the other errors by changing all references from com.bea.jcom.Variant
etc to com.linar.jintegra.class name..all were present under the com.linar.jintegra
package.
Thank you all anyways,
Regards,
rahul
"Rahul Srivastava" <[email protected]> wrote:
>
Hi,
We are generating java classes for the COM dll using JCOM com2java compiler.
We are getting a compilation error for import class not found when compiling
the
generated Proxy java source code. It can't find the com.bea.jcom.Dispatch
class that
the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
or com.bea.jcom.Param. These are interfaces or data types or classes used
by COM
library.
I added weblogic.jar to my class path and the only Dispatch class i found
inside
the weblogic.jar is com.linar.jintegra.Dispatch;
We have com objects for which we want to develop an EJB client to interface
with
the COM object using JCOM with Native Mode disabled.
Any help on the compilation error..I tried changing the extends for Dispatch
to com.linar.jintegra.Dispatch
but the other errors are still there.
To begin with, I think the generated code should not refer to any of the
COM data
types.
Any help please.
Thank you in advance,
Regards,
Rahul Srivastava
[email protected] -
Authorization Error For XI Integration Repository and Directory
Hi All,
I am new in this field.
While accessing Integration Repository and Directory, I am getting the error "No Authorization for this action". I am trying to login with user J2EE_ADMIN, have following roles :
SAP_J2EE_ADMIN
SAP_J2EE_ADMIN
SAP_J2EE_GUEST
SAP_XI_ADMINISTRATOR_J2EE
SAP_XI_CONFIGURATOR_J2EE
thnx and regds:
N.N. Tiwarihi,
go to http://<host>:<port>/index.html -->User Management log in using j2ee_admin
When you go into one of the tabs, there will a client entry . Just change.
You should able to do the same thing with UME provider service in the visual admin.
Please check Note 938980 if you are using VPN.
This is probably a Java Web-Start issue. Please check logon with other JWS versions. Also check if you have any conflicting JWS versions installed.
This is a checklist for logon errors:
/people/shabarish.vijayakumar/blog/2006/02/13/unable-to-open-iresrid-xipipi-71-updated-for-pi-71-support
Also check the methods in these threads:
Authorization error; unknown user name or incorrect password
Authorization error in Integration Repository.
Note: reward points if solution found helpfull
Regards
Chandrakanth.k -
'No authorization' error for selection values outside the authorized range
Hi All,
We are currently trying to use the authorization analysis concept for 'Cost center reporting'.
We have made 0COSTCENTER info-object as authorization relevant and have created a analysis authorization object for it through RSECADMIN and we have maintained a single value as '1875' . We have assigned this object to 1 of the test users.
So now if the user runs the report for cost center '1875' , he is able to view the data/report. Now if he enters any other cost center apart from '1875' than he gets an authorization error (Everything works as per requirement till this point).
But now if the user enters multiple cost centers like 1875, 1876, 1877 as multiple single values and runs the report, he gets an 'No authorization error'.
So all the experts, please let me know if it's possible in anyway for the user to see the result/report for the value he is authorized to (in this case - 1875) and should give an information/warning/error message saying that he is not authorized to other cost center (in this case - 1876, 1877).
Same thing is occuring if user enters a range. Suppose a user is authorized for cost center - 1875 to 1880. Now if he puts multiple single values or range in between the authorized range than he can see the result but if he enters even 1 single value outside the range he gets an error - what I mean by this is - if the user enter a range from 1875 to 1801, he does not get any data display but instead he recieves an error message saying 'No authorization' even though he is authorized for all the cost centers in that range except 1801.
I would really appreciate your help regarding this. Any comments/suggestions are very welcome.
Thanks & regards,
SunnyHi Sunny
That is the way analysis authorizations work!!
If you ask for a number of values i.e. cost centers and you don't have authorization to *all* of them you will get a system error as you say.
There is no way of partially evaluating the query as you suggest (only for the authorized values).
Try to be less restrictive when defining characteristic values in RSECADMIN.
In queries use variables with
Processing by Authorization and Input Ready.
So the system will tell the user which are the allowed values. In your example the system suggests the range 1875-1880.
Hope this helps, regards
Germá -
Class not found error while using ikvm error code IKVMC0100: class "javax.b
hi iam writing a java application which uses bluetoth i.e. javax.bluetooth;
now i need to create exe for c# i.e. my GUI is C# and business logic is java,
so these are steps i have followed
* created a java project (iam using netbeans 6.1)
* after build i used command prompt and travesed to dist of my project location which contains jar
* here i typed ikvmc my.jar
but now it says the following it also contains others but one of such is
Warning IKVMC0100: class "javax.bluetooth.LocalDevice" not found
it also creates exe but if use that in my c# then raises the exception...
so please help me.. what is the solution for this....If you have the SDKPanel sample, you have a Flex sample and debugging information. Please let me know (off-forum) what you're buildng, and we'll make sure your dev environment is configured correctly.
-
Configure Mac Mail for First Class E-Mail? Help!
So I have been able to get Mac Mail on my new MBP to retrieve and send e-mail from three of my four accounts; the one that I cannot get to work is with my mail from First Class, our college's mail server.
I have worked with our IT guy and have all the settings correct in the account creation wizard. Mail connects, populates an inbox, but when I try to sentd mail, I get any number of errors: smtp failed to connect, etc. Sometimes the server has (ofline) next to it in the rely message.
I have deleted and re-created numerous times, deleted the related keychain, restarted, searched this forum and Googled, and I can't find anything.
I really do not want to use the First Class client. I find it clunky, and I just want to have all my mail in one program.
So is anyone here successfully using Mac Mail to send and receive their First Class e-mail?
Cheers!I manage a FirstClass server. Your user account on the server must be set to "Allow Mail Relay." It can only be done from the Administration side, so you're at the mercy of the IT department to give you that privilidge. Other wise you're stuck using the FirstClass client.
Brian -
Need your help !!! -- Authorization error for Real-Time Bex query
Dear experts:
I have a Bex query built on a multiprovider, this multiprovider is consist of one standard cube and one real-time cube(virtual provider). When I run this query, I can retrive the data and no error occured, but when others execute this query, they will get the error message below:
Operation Generate a Request could not be carried out for DTP DTP_D7JVT8DGBQWPWL13VIUITNODG
You do not have authorization for the data transfer process
Errors occurred during parallel processing of query 2, RC: 3
Error while reading data; navigation is possible
Row: 54 Inc: WRITE_MESSAGES Prog: CL_RSDR_AT_QUERY
I used tcode rsecadmin to track the authorization, when I execute as user XXX, I can get the same error above, but when I go to "Display Log", no error showed there.
Did anybody meet the same error before? How to resolve that?
Any post would be appreciated and thank you all in advance!
TimI think there is some missing authorization,here
the user has no access to execute the DTP.
You can analyse it in rsecadmin or also see
which object you are getting in su53.
Thanks,
Saveen -
Getting mail authentication errors for outlook user sending mail
When Outlook 2010 user attempts to use port 587 to send mail (to himself at this point), we see the following in the server logs:
(User in question can attach to file shares on the same server just fine from his Windows laptop)
Outlook config for outbound server is "port: 587, encryption TLS"
When we connect, we get "connection interrupted by server"
Tried other encryption methods - outlook 2010 states that server does not support the other methods (None, SSL)
SMTPD Logs
Jul 29 22:22:58 <servername>.l-n-l.com postfix/smtpd[2306]: connect from <Outlook Client Name>[<Outlook ClientAddr>]
Jul 29 22:22:58 <servername>.l-n-l.com postfix/smtpd[2306]: error: validate response: error: Authentication server failed to complete the requested operation.
Jul 29 22:22:58 <servername>.l-n-l.com postfix/smtpd[2306]: error: validate response: authentication failed for user=colin (method=DIGEST-MD5)
Jul 29 22:22:58 <servername>.l-n-l.com postfix/master[1407]: warning: process /usr/libexec/postfix/smtpd pid 2306 killed by signal 6
Jul 29 22:22:58 <servername>.l-n-l.com postfix/master[1407]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Jul 29 22:24:12 <servername>.l-n-l.com postfix/smtpd[2270]: timeout after END-OF-MESSAGE from localhost[127.0.0.1]
Jul 29 22:24:12 <servername>.l-n-l.com postfix/smtpd[2270]: disconnect from localhost[127.0.0.1]
Meanwhile: Mac clients are able to connect to smptd submission port to send mail with no problems. Based on what the logs say, it appears that the Mac mail is using a different authentication mechanism.
Client config for outbound server is "use custom port: 587, Use SSL:Checked, Authentication: MD5 Challenge-Response"
Jul 29 22:19:12 <servername>.l-n-l.com postfix/smtpd[2261]: connect from <Mac Client Name>[<MacClientAddr>]
Jul 29 22:19:12 <servername>.l-n-l.com postfix/smtpd[2261]: 721FCEC991: client=<Mac Client Name>[<MacClientAddr>], sasl_method=CRAM-MD5, sasl_username=<username>@l-n-l.com
Jul 29 22:19:12 <servername>.l-n-l.com postfix/cleanup[2267]: 721FCEC991: message-id=<[email protected]>
Jul 29 22:19:12 <servername>.l-n-l.com postfix/qmgr[1800]: 721FCEC991: from=<[email protected]>, size=573, nrcpt=1 (queue active)
Jul 29 22:19:12 <servername>.l-n-l.compostfix/smtpd[2270]: connect from localhost[127.0.0.1]
Jul 29 22:19:12 <servername>.l-n-l.com postfix/smtpd[2270]: E722AEC9A0: client=localhost[127.0.0.1]
Jul 29 22:19:12 <servername>.l-n-l.com postfix/cleanup[2267]: E722AEC9A0: message-id=<[email protected]>
Jul 29 22:19:12 <servername>.l-n-l.com postfix/qmgr[1800]: E722AEC9A0: from=<[email protected]>, size=994, nrcpt=1 (queue active)
Jul 29 22:19:12 <servername>.l-n-l.com postfix/smtp[2268]: 721FCEC991: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.55, delays=0.06/0.01/0.01/0.48, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as E722AEC9A0)
Jul 29 22:19:12 <servername>.l-n-l.com postfix/qmgr[1800]: 721FCEC991: removed
Jul 29 22:19:13 <servername>.l-n-l.com postfix/pipe[2273]: E722AEC9A0: to=<[email protected]>, relay=dovecot, delay=0.13, delays=0/0.01/0/0.12, dsn=2.0.0, status=sent (delivered via dovecot service)
Jul 29 22:19:13 <servername>.l-n-l.com postfix/qmgr[1800]: E722AEC9A0: removed
Jul 29 22:20:12 <servername>.l-n-l.com postfix/smtpd[2261]: disconnect from <Mac Client Name>[<MacClientAddr>]
Running OS X 10.8.4 with Server 2.2.1.
Any thoughts on what I need to do to make OSX Server mail play nice with Outlook over the submission port?
Thanks in advance!!Ok - so I think I have it almost all sussed. So for all 3 of you who might be reading this, here is what is going on.
1) As I expected, this has nothing to do with the FQDN/Outlook problem. I actually rejoiced when I finally got far enough to have that problem with my Outlook 2007 and 2010 clients. And I don't like the recommended fix for that either. There is another way - more on that in a minute.
2) This problem was all about authentication methods. At present, I have OS X Mail Server set for plain text and APOP only. I will be working to fix this soon - but at present I am unable to find any other combination that permits both Mac Mail and Outlook clients to authenticate properly. Mac Mail wants to use CRAM-MD5 by default. Outlook is so incompatible with CRAM-MD5 that even when there are other authentication methods available on the mail server, if CRAM-MD5 is selected on the Server then Outlook fails miserably no matter how you configure the Outlook client. Caveat: this is my own observation and I still have some experimenting to do. If you know otherwise (or can confirm more definitively), then please speak up!
So here is the working configuration at present:
A) Mail Server authentication set to Custom with PlainText and APOP selected, all others blank.
B) Firewall permits inbound from ports 25 (for mail from "outside"), 587 (submission for authenticated users, TLS) 993 (SSL IMAP), and 995 (SSL POP).
C) Mac POP Clients:
i) For retrieval (POP) In advanced settings, use Port 995, Check "Use SSL", Select APOP for authentication.
ii) For submission (SMTP) : Set port 587 (only), Set Authentication to "Password"
D) Outlook 2007,2010,2013 clients
i) For retrieval (POP), Set "Require secure logon using SPA"
ii) In "More Settings/Outgoing Server" set it to require authentication with same credentials as inbound
iii) In "More Settings/Advanced"
a) Turn on Encryption for the POP3, this should change the port to 995 automatically. If it does not, fix that too.
b) Set outgoing server to 587
c) Set TLS for the encryption type (nothing else will work here)
Once you do 2.A, 2.B, 2.D, you will THEN, finally encounter the FQDN problem.
3) So Apple and a lot of folks here in the forums resolve the FQDN problem by removing one of the restrictions:
Remove "reject_non_fqdn_helo_hostname" from "smtpd_helo_restrictions" in your postfix main.cf file.
I have at least 2 problems with this:
A) It removes yet another little bit of security from the setup
B) It involves non-GUI changes to the config...which is dangerous if you use the GUI, as changes within the GUI will often result in overwrites to your changes outside the GUI. So you can easily lose this fix without being aware of it until one of your Outlook users starts screaming.
The problem is really with Outlook and Windows not sending the FQDN in the first place. So how about we force them to do that instead? It turns out not to be too hard. I found a thread somewhere that goes into this and it works. Further, the solution remains on through reboots AND also can be made part of an automated deployment of a standard config. The only gotcha is you have to edit the registry...so you have to be careful. You only need to do this ONCE though, and the two entries are easy to find.
C) Under HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/services/Tcpip/Parameters
i) Set Hostname to the FQDN of your host (replace HOST with HOST.domain.com - or .net, or whatever)
ii) Set NV Hostname to the FQDN of your host
iii) Close Regedit and Reboot to have the changes take effect
Once you do this, the FQDN problem for Outlook users goes away.
So I am looking for suggestions to make the SMTP submission more secure. Aside from that, things are working - and I have had to make ZERO changes to config files outside of the Server GUI - a plus as far as I am concerned.
Maybe you are looking for
-
New Hard Drive Enclosure not being detected by Mac
Hi. I've been having problems with my external hard drive. I went out and bought a hard drive enclosure today at Best Buy for more storage on my eMac. After putting it together, I plugged it into my Windows 7 computer to test it out and it worked per
-
I cannot get the desktop version to open.
I am on a Mac running OS 10.10 (Yosemite). I was able to access Story in Chrome and sign in successfully. I downloaded the desktop version which required updating Air (which I did) and now when I launch Story on my Mac I get message saying that the a
-
HT1335 How to transfer iPod to laptop
I am trying to transfer music from iPod to my laptop but I don't know how to do it Cheers
-
Crushed black levels in iMovie HD
I'm having trouble with black levels being crushed (i.e.: darkening, unwanted excessive contrast, loss of detail) when importing video from a newer pro level JVC broadcast 1/2-inch chip camera into iMovie HD. I am importing via firewire into iMovie,
-
Return FG material bom to get update automatically
Dear All, This is my requirement how to address this one. I am making one FG eg Bumper (Used in Car Industry) suppose i am delivering 100 nos of FG to customers and afterwards from 100 piece 10 nos return to me by customer for dameged or any other re