SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first

Hello, I was trying to send mails via GMail's smtp server (smtp.gmail.com) but the following exception occurred. I used port 25 (used 467 also, didnt work). Would anybody tell what the following exception mean. Thanx.
com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command firstHere's my code:
import javax.mail.*;
import javax.mail.event.TransportListener;
import javax.mail.event.TransportEvent;
import javax.mail.internet.*;
import java.util.Properties;
import javax.activation.*;
class MailSender {
     private String mailHost="smtp.gmail.com";
     private String body;
     private String myFile="F:\\DRacing.avi";
     private Properties props;
     private Session mailSession;
     private MimeMessage message;
     private InternetAddress sender;
     private Multipart mailBody;
     private MimeBodyPart mainBody;
     private MimeBodyPart mimeAttach;
     private DataSource fds;
     MailSender()
          //Creating a Session
          props=new Properties();
                    props.put("mail.transport.protocol", "smtp");
          props.put("mail.smtp.host", mailHost);
          props.put("mail.smtp.port", "25");
          props.put("mail.smtp.auth", "true");
          mailSession=Session.getDefaultInstance(props, new MyAuthenticator());
          //Constructing and Sending a Message
          try
               //Starting a new Message
               message=new MimeMessage(mailSession);
               mailBody=new MimeMultipart();
               //Setting the Sender and Recipients
               sender=new InternetAddress("[email protected]", "Kayes");
               message.setFrom(sender);
               InternetAddress[] toList={new InternetAddress("[email protected]")};
               message.setRecipients(Message.RecipientType.TO, toList);
               //Setting the Subject and Headers
               message.setSubject("My first JavaMail program");
               //Setting the Message body
               body="Hello!";
               mainBody=new MimeBodyPart();
               mainBody.setDataHandler(new DataHandler(body, "text/plain"));
               mailBody.addBodyPart(mainBody);
               //Adding a single attachment
               fds=new FileDataSource(myFile);
               mimeAttach=new MimeBodyPart();
               mimeAttach.setDataHandler(new DataHandler(fds));
               mimeAttach.setFileName(fds.getName());
               mailBody.addBodyPart(mimeAttach);
               message.setContent(mailBody);
                              Transport.send(message);
          catch(java.io.UnsupportedEncodingException e)
               System.out.println(e);
          catch(MessagingException e)
               System.out.println(e);
          catch(IllegalStateException e)
               System.out.println(e);
public class TestMail01
     public static void main(String args[])
          new MailSender();
class MyAuthenticator extends Authenticator
     MyAuthenticator()
          super();
     protected PasswordAuthentication getPasswordAuthentication()
          return new PasswordAuthentication("dider7", "MY_PASSWORD");
}

This is an application that sends a message but there is a problem the domain could not be resolved
* Notifier.java
* Created on March 23, 2006, 11:22 AM
* To change this template, choose Tools | Options and locate the template under
* the Source Creation and Management node. Right-click the template and choose
* Open. You can then make changes to the template in the Source Editor.
* @author Trainee
import java.util.*;
import java.sql.*;
import javax.mail.*;
import javax.mail.internet.*;
import java.io.*;
import java.net.InetAddress;
import java.util.Properties;
import java.util.Date;
public class Notifier //throws MessagingException
public static void main(String args[]) //throws Exception
//SystemTray.getDefaultSystemTray().addTrayIcon(new TrayIcon(new ImageIcon("imagefilename")));
// starts time getter
NotifierThread NThread = new NotifierThread();
Thread t = new Thread(NThread);
t.start();
//email module
//EmailThread emailThread = new EmailThread();
//emailThread.sendMessage();
/*SimpleSender simple = new SimpleSender();
simple.senderClassKo();*/
//String[] arrayKo = { "[email protected]","def","xyz" };
//String[] arrayKo = { "[email protected]","def","xyz" };
//String recipients = "[email protected]";
/*EmailThread EThread = new EmailThread();
try
// ( String recipients[ ], String subject, String message , String from)
EThread.postMail( "[email protected]" , "NOTIFY", "ContractOverdue" , "[email protected]");
System.out.println("ethread");
catch(MessagingException me)
me.printStackTrace();
//DBConnection dbc = new DBConnection();
//dbc.DBConnect();
String host = "smtp.gmail.com";
String from = "[email protected]";
//String to = "[email protected]";
String to = "[email protected]";
// Get system properties
Properties props = System.getProperties();
// Setup mail server
props.put("mail.smtp.host", host);
props.put("mail.smtp.starttls.enable", "true");
props.put("mail.smtp.auth", "true");
// Get session
Authenticator auth = new MyAuthenticator();
Session session = Session.getDefaultInstance(props, auth);
// Define message
MimeMessage message = new MimeMessage(session);
message.setFrom(new InternetAddress(from));
message.addRecipient(Message.RecipientType.TO,
new InternetAddress(to));
message.setSubject("Hello JavaMail");
message.setText("Welcome to JavaMail");
// Send message
//com.sun.mail.smtp.SMTPSSLTransport.send(message);
Transport.send(message);*/
class DBConnection
static String[] email2 = new String[10];
static int ctr = 0;
static String ctrlno = "";
public void DBConnect()
Connection connection = null;
Statement statement = null;
ResultSet rs = null;
try
Class.forName("org.postgresql.Driver");
connection = DriverManager.getConnection("jdbc:postgresql:cms", "postgres", "password");
statement = connection.createStatement();
String ctrlno2 = "ctrlno1";
String sql = "SELECT (expiredate - CURRENT_DATE) as no_days, cms_trans_contract.ctrlno, cms_trans_contract_notify.notifyid, ofc_employee.email, notify1, notify2, notify3 from" +
" cms_trans_contract, cms_trans_contract_notify, ofc_employee where" +
" cms_trans_contract.ctrlno = cms_trans_contract_notify.ctrlno and cms_trans_contract_notify.notifyid = ofc_employee.idnum";
//where ctrlno = " + "'"+ctrlno2+"'";
//"select expiredate from cms_trans_contract";
//wherer ctrlno = " + "'"+ctrlno2+"'";
//SELECT (CURRENT_DATE - expiredate) as no_days from cms_trans_contract
sql += "where startdate between '";
sql += request.getParameter("commenceStartDate") + "' and '"
sql += request.getParameter("commenceEndDate") + "'";
sql += "and expiredate between '";
sql += request.getParameter("expireStartDate") + "' and '"
sql += request.getParameter("expireEndDate") + "'";
rs = statement.executeQuery(sql);
//System.out.println("rs: " + rs.next());
while (rs.next())
//System.out.println("Record Found");
String firstname = "";
String lastname = "";
String notifyid = "";
String email = "";
int notify1;
int notify2;
int notify3;
//Date expiredate;
int subtracted_date;
//firstname = (rs.getString(1));
subtracted_date = (rs.getInt(1));
ctrlno = (rs.getString(2));
notifyid = (rs.getString(3));
//email = (rs.getString(4));
email2[ctr] = (rs.getString(4));
notify1 = (rs.getInt(5));
notify2 = (rs.getInt(6));
notify3 = (rs.getInt(7));
//lastname = (rs.getString(2));
//out.println(contract.getCtrlno());
//System.out.println("FIRSTNAME: " + firstname);
//System.out.println("LASTNAME: " + lastname);
//System.out.println("Expiredate: " + expiredate);
//System.out.println("Ctrlno: " + ctrlno);
System.out.println("SUB: " + subtracted_date);
//System.out.println("sql: " + sql);
if((((subtracted_date == notify1) || (subtracted_date == notify2)) || (subtracted_date == notify3)) && (subtracted_date > 0))
System.out.println("CtrlnoGET: " + ctrlno);
System.out.println("NotifyID: " + notifyid);
//System.out.println("email " + email);
System.out.println("EmailCTR: " + ctr +": " + email2[ctr]);
System.out.println("notify1: " + notify1);
System.out.println("notify2: " + notify2);
System.out.println("notify3: " + notify3);
EmailThread emailThread = new EmailThread();
emailThread.sendMessage(DBConnection.email2, DBConnection.ctrlno);
//ctr++;
ctr++;
if (rs.next() == false)
System.out.println("No records found");
catch (Exception ex)
ex.printStackTrace();
System.out.println("Error getting connections");
finally
try
if (rs != null)
rs.close();
if (statement != null)
statement.close();
if (connection != null)
connection.close();
catch (Exception ex)
ex.printStackTrace();
System.out.println("Error closing connections");
// time getter module
class NotifierThread implements Runnable
public void run()
while (true)
Calendar cal = new GregorianCalendar();
int hour12 = cal.get(Calendar.HOUR); // Range 0..11
//int hour24 = cal.get(Calendar.HOUR_OF_DAY); // Range 0..23
int min = cal.get(Calendar.MINUTE); // Range 0..59
int sec = cal.get(Calendar.SECOND); // Range 0..59
//int ms = cal.get(Calendar.MILLISECOND); // Range 0..999
int ampm = cal.get(Calendar.AM_PM); // Range 0=AM, 1=PM
String am_pm = "";
if(ampm == 0)
am_pm = "AM";
else
am_pm = "PM";
System.out.println("Time " + hour12 + ":" + min + ":" + sec + " " + am_pm);
if(sec == 10)
System.out.println("YIPEE");
//EmailThread emailThread = new EmailThread();
//emailThread.sendMessage(DBConnection.email2);
DBConnection dbc = new DBConnection();
dbc.DBConnect();
try
Thread.sleep(1000);
catch(Exception e)
e.printStackTrace();
class SimpleSender
* Main method to send a message given on the command line.
/*public void senderClassKo()
try
//String smtpServer="mail.kiksbalayon.com";
String smtpServer="localhost";
String to="[email protected]";
String from="[email protected]";
String subject="hello";
String body="sa wakas ng send din";
send(smtpServer, to, from, subject, body);
catch (Exception ex)
//System.out.println("Usage: java com.lotontech.mail.SimpleSender"
//+" smtpServer toAddress fromAddress subjectText bodyText");
System.exit(0);
/*public static void send(String smtpServer, String to, String from, String subject, String body)
try
Properties props = System.getProperties();
// -- Attaching to default Session, or we could start a new one --
props.put("mail.smtp.host", smtpServer);
Session session = Session.getDefaultInstance(props, null);
// -- Create a new message --
Message msg = new MimeMessage(session);
// -- Set the FROM and TO fields --
msg.setFrom(new InternetAddress(from));
msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(to, false));
// -- We could include CC recipients too --
// if (cc != null)
// msg.setRecipients(Message.RecipientType.CC
// ,InternetAddress.parse(cc, false));
// -- Set the subject and body text --
msg.setSubject(subject);
msg.setText(body);
// -- Set some other header information --
//msg.setHeader("X-Mailer", "LOTONtechEmail");
msg.setSentDate(new Date());
// -- Send the message --
Transport.send(msg);
System.out.println("Message sent OK.");
catch (Exception ex)
ex.printStackTrace();
//Authentication module
class MyAuthenticator extends Authenticator
MyAuthenticator()
super();
//protected PasswordAuthentication getPasswordAuthentication()
public PasswordAuthentication getPasswordAuthentication()
return new PasswordAuthentication("johann108", "password");
// email module
class EmailThread //throws MessagingException
public void sendMessage(String toEmail[], String ctrlno) //throws MessagingException
try
String host = "localhost";
//String host = "mail.philweb.com";
//String from = "[email protected]";
String from = "[email protected]";
//String[] to = toEmail;
//"[email protected]";
// Get system properties
Properties props = System.getProperties();
// Setup mail server
props.put("mail.smtp.starttls.enable","true");
props.put("mail.smtp.host", host);
props.put("mail.smtp.auth", "true");
// Get session
Authenticator auth = new MyAuthenticator();
Session session = Session.getDefaultInstance(props, auth);
boolean debug = true;
session.setDebug(debug);
// Define message
MimeMessage message = new MimeMessage(session);
message.setFrom(new InternetAddress(from));
InternetAddress[] to = new InternetAddress[DBConnection.ctr];
for (int i = 0; i < DBConnection.ctr; i++)
to[i] = new InternetAddress(toEmail);
//System.out.println("EMAILTO:" + to[i]);
message.setRecipients(Message.RecipientType.TO, to);
//message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
message.setSubject("Contract Expiry");
message.setText(
"Contract is about to expire\n" +
" ContractNumber is " + DBConnection.ctrlno
// Send message
Transport.send(message);
catch(Exception me)
me.printStackTrace();
System.out.println("Error in Sending Message");

Similar Messages

  • Mailer object error message "SMTP: invalid from address. SMTP error 530 5.7.0 Must issue a STARTTLS command first. d5sm35857280yhl.19".

    I am trying to send an email from Lookout V6.6 using the Mailer object.  I have an email address setup through GMAIL and have verified it works.  Also, Lookout Mailer object is able to verify GMAIL server.  I get the following error message when trying to send the email: "SMTP: invalid from address. SMTP error 530 5.7.0 Must issue a STARTTLS command first. d5sm35857280yhl.19".  Anyone know what is causing this?

    Another method is to use a SMTP relayer, we have deployed them in the past.
    http://www.hmailserver.com/index.php?page=welcome
    Mike
    Forshock - Consult.Develop.Solve.

  • 829 = 530 5 7 0 Must issue a STARTTLS command first. d4s

    Hi SAP Guru's
    I have configured SCOT for SMTP but when I am sending mails its show in below error
    Internal error: CL_SMTP_RESPONSE ESMTP error code is not
    known. 530 530 5.7.0 Must issue a STARTTLS command first.d4s
    and scot trace is giving below error
    829 = 530 5 7 0 Must issue a STARTTLS command first. d4s
    I have gone thorugh all the SDN Threads but no success , please suggest some solution

    hi
    check this SAP Notes
    931596 Recipient is missing in synchronous status message 04.05.2006
    751332 Error sending mails with several recipients 08.04.2005
    690020 SAPconnect send process hangs with large mails 27.01.2004
      693215 Service unavailable during inbound processing 30.12.2003
    402907 SAPconnect: Sending via ESMTP terminates with a dump

  • ORA-29279: SMTP permanent error: 530 5.7.0 Must issue a STARTTLS command fi

    Hello friend,
    I have changed my smtp server to send email but now i am getting a different error like given below
    ORA-29279: SMTP permanent error: 530 5.7.0 Must issue a STARTTLS command first. 2sm141783tif.39
    I dont know what is this STARTTLS command.
    Pls help me ;
    Thanks,
    Uttam SIngh

    It is NOT obvious to someone experiencing a ORA-29279: SMTP permanent error: messages that the root cause is in the SMPT server, it is still an ORA error code. It is especially NOT OBVIOUS, if that person is OBVIOUSLY a newbie. It is OBVIOUS that when you essentially flame people for asking such questions you discourage them from ever asking questions on your forum.
    Could you PLEASE, PLEASE, PLEASE be a little less arrogant and stop cluttering up this forum with over-the-top and OFF responses????
    Thank You in Advance Mr. Expert.

  • JavaMail Gmail Error !! Strucked - "Must issue a STARTTLS command first"

    I have used the code as below. !!
    I guess code is perfect and i have tried many alternative code. but not working !!
    I am calling the function from my other Page
    Error
    oracle.apps.fnd.framework.OAException: java.lang.RuntimeException: javax.mail.SendFailedException: Sending failed;
    class javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS command first. nh6sm15292366pbc.44
    <h5>
    import java.util.Properties;
    import javax.mail.Message;
    import javax.mail.MessagingException;
    import javax.mail.PasswordAuthentication;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeMessage;
    public class SendMail {
    public static void send(String to, String from, String subject,
    String body) {
    final String username = "emailId";
    final String password = "password";
    Properties props = new Properties();
    props.put("mail.smtp.auth", "true");
    props.put("mail.smtp.starttls.enable", "true");
    props.put("mail.smtp.host", "smtp.gmail.com");
    props.put("mail.smtp.port", "587");
    Session session = Session.getInstance(props,
    new javax.mail.Authenticator() {
    protected PasswordAuthentication getPasswordAuthentication() {
    return new PasswordAuthentication(username, password);
    session.setDebug(true);
    try {
    Message message = new MimeMessage(session);
    message.setFrom(new InternetAddress(from));
    message.setRecipients(Message.RecipientType.TO,
    InternetAddress.parse(to));
    message.setSubject(subject);
    message.setText(body);
    Transport.send(message);
    System.out.println("Done");
    catch (MessagingException e)
    throw new RuntimeException(e);
    public static void main(String[] args) {
    SendMail sendMail = new SendMail();
    sendMail.send("[email protected]", "[email protected]", "javamail", "Body");
    </h5>
    Edited by: 942767 on Jun 27, 2012 7:14 AM

    I am using Java Mail Version 1.3.1
    Debug Out Put
    12/06/28 05:29:20 DEBUG: setDebug: JavaMail version 1.3.1
    12/06/28 05:29:20 DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
    12/06/28 05:29:20 DEBUG SMTP: useEhlo true, useAuth false
    12/06/28 05:29:20 DEBUG SMTP: trying to connect to host "smtp.gmail.com", port 587
    220 mx.google.com ESMTP hf5sm1011580pbc.4
    12/06/28 05:29:20 DEBUG SMTP: connected to host "smtp.gmail.com", port: 587
    EHLO Evosys-PC
    250-mx.google.com at your service, [115.115.128.82]
    250-SIZE 35882577
    250-8BITMIME
    250-STARTTLS
    250 ENHANCEDSTATUSCODES
    12/06/28 05:29:20 DEBUG SMTP: Found extension "SIZE", arg "35882577"
    12/06/28 05:29:20 DEBUG SMTP: Found extension "8BITMIME", arg ""
    12/06/28 05:29:20 DEBUG SMTP: Found extension "STARTTLS", arg ""
    12/06/28 05:29:20 DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
    12/06/28 05:29:20 DEBUG SMTP: use8bit false
    MAIL FROM:<[email protected]>
    530 5.7.0 Must issue a STARTTLS command first. hf5sm1011580pbc.4
    Edited by: 942767 on Jun 27, 2012 10:54 PM

  • Must issue a STARTTLS command first

    Hi, I hope anyone can help me.
    I'm trying to setup BPM Studio to send emails.
    I've been reviewing some previous threads but I couldn't find a solution.
    I want to use gmail or hotmail smtp but I get the following error:
    530 5.7.0 Must issue a STARTTLS command first.
    I've created an external resource to setup the SMTP.
    I will appreciate any help.
    Thanks,
    Matias

    Hi Matias,
    I poked arount this today and could not get gmail's StartTLS working in Oracle BPM either. Just as an experiment, I verified that I could send an email using another client (Eudora) using my Gmail account. Using the smtp server "smtp.gmail.com" and port 587 and marking it "StartTLS". This worked like a charm.
    Unfortunately, as you've seen - when configuring an Outgoing Email Service (right mouse click "External Resources" -> "New External Resource" -> click the "Type" dropdown and click "Mail Outgoing Service") none of the 4 options are "STARTTLS". I thought either "SSL" or "TLS" would have worked but they don't.
    Other than hand coding Java, I'm not sure there's a good answer for you since it appears StartTLS is not supported in Oracle BPM.
    Is it possible you might be able to use another SMTP outgoing service? Most companies I've worked with in the past have made their SMTP service available that does not require StartTLS.
    Sorry,
    Dan

  • ORA-29279: SMTP permanent error: 530 5.7.0 Must issue a STARTTLS command

    Hi,
    When am sending mail through apex_mail it getting an error { " ORA-29279: SMTP permanent error: 530 5.7.0 Must issue a STARTTLS  "}
    ACL Package
    {{{{  " DECLARE
    ACL_PATH VARCHAR2(4000);
    ACL_ID RAW(16);
    BEGIN
    -- Look for the ACL currently assigned to '*' and give APEX_040100
    -- the "connect" privilege if APEX_040000 does not have the privilege yet.
    SELECT ACL INTO ACL_PATH FROM DBA_NETWORK_ACLS
    WHERE HOST = '*' AND LOWER_PORT IS NULL AND UPPER_PORT IS NULL;
    -- Before checking the privilege, make sure that the ACL is valid
    -- (for example, does not contain stale references to dropped users).
    -- If it does, the following exception will be raised:
    -- ORA-44416: Invalid ACL: Unresolved principal 'APEX_040100'
    -- ORA-06512: at "XDB.DBMS_XDBZ", line ...
    SELECT SYS_OP_R2O(extractValue(P.RES, '/Resource/XMLRef')) INTO ACL_ID
    FROM XDB.XDB$ACL A, PATH_VIEW P
    WHERE extractValue(P.RES, '/Resource/XMLRef') = REF(A) AND
    EQUALS_PATH(P.RES, ACL_PATH) = 1;
    DBMS_XDBZ.ValidateACL(ACL_ID);
    IF DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE(ACL_PATH, 'APEX_040100',
    'connect') IS NULL THEN
    DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(ACL_PATH,
    'APEX_040100', TRUE, 'connect');
    END IF;
    EXCEPTION
    -- When no ACL has been assigned to '*'.
    WHEN NO_DATA_FOUND THEN
    DBMS_NETWORK_ACL_ADMIN.CREATE_ACL('power_users.xml',
    'ACL that lets power users to connect to everywhere',
    'APEX_040100', TRUE, 'connect');
    DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL('power_users.xml','*');
    END;
    COMMIT;
    And i changed in the instance settings under email to smtp credentials.
    can anyone tel me about this error.??
    My apex version - 4.1.1
    database version - 11gr2
    Edited by: Tulasi 1243 on Aug 17, 2012 4:27 PM

    Hi,
    Many mail server provides like gmail use TLS/SSL for mail transmission. The error suggest your mail server is expecting a TLS/SSL connection.
    The TLS/SSL connection is not part of the UTL_SMTP and UTL_MAIL API. You have to either use Wallet as described here http://oracleblues.blogspot.in/2010/09/11g-release-2-11202-new-utlsmtp.html or use a third party tunneler like stunnel as described here http://monkeyonoracle.blogspot.in/2009/11/plsql-and-gmail-or-utlsmtp-with-ssl.html
    Cheers,

  • 530 Must issue a STARTTLS command first

    Hello! We are having an issue emailing a particular client. Emails are
    getting bounced back with the 530 message. I just renewed our cert and
    everything checks out with Thawte. I don't know where to really begin
    sorting this out and it is an urgent matter so I would greatly appreciate
    any insight or direction. My boss is breathing down my neck. Thanks so
    much. Running 7.0.3 on NW 6.5.6

    I think I resolved the issue. The GWIA was reporting an 891C and i didn't
    see that at first. Then after I corrected cert format issue, it said 8209
    so I shortened the filename and email appeared to go through. Thank you.

  • Exception in Sending Mails - Must issue a STARTTLS

    Sending Mails to Multiple Users
    I m getting this error, can somebody tell me what could be the possible error here:
    530 5.7.0 Must issue a STARTTLS command first k39sm4421196wah
    com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first k39sm4421196wah
    at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)
    at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583)
    at MailSender.sendMessageTo(MailSender.java:46)
    at Mailer.sendMessages(Mailer.java:19)
    at Mailer.main(Mailer.java:33)
    Exception in thread "main" com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first k39sm44211
    96wah
    at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)
    at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:959)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:583)
    at MailSender.sendMessageTo(MailSender.java:46)
    at Mailer.sendMessages(Mailer.java:19)
    at Mailer.main(Mailer.java:33)

    Your server wants you to issue a STARTTLS command to switch the
    socket to a secure connection. You can allow JavaMail to do that by
    setting the "mail.smtp.starttls.enable" property to "true" when you create
    the Session. See the SSLNOTES.txt file included with JavaMail and the
    com.sun.mail.smtp package javadocs.

  • Problem recieving email Diagnostic-Code: smtp; 530 Must issue a STARTTLS co

    Hello all,
    I am running OSX Server 10.4.9 configured mail services. I'm able to recieve mail from Yahoo. However when logging onto Webmail from Cox or when trying to receive email from others some are getting this messgae:
    Diagnostic-Code: smtp; 530 Must issue a STARTTLS command first
    I am kind of new to this stuff and can't fuguire out what this means or how to fix it... Any help would be great.
    Second question does anybody now how to configure outlook windows users?

    Configure Pop, SMTP with SSL. I just want the mail server to be secure and don't want to end up with open relays for spammers...
    I don't have alternate ports enabled. I read the web page and 'm confused as to how to do it?How exactly do I do this? I'm reading:Alternate SMTP Ports
    To enable alternate SMTP submission ports, add one or both of the following to /etc/postfix/master.cf
    For organization, paste just below this line:
    smtp inet n - n - - smtpd
    # Code to enable two common alternate SMTP Submission ports
    # Modify the -o options to suit your requirements
    # Option lines should start with one or more spaces
    # Don't forget to open firewall ports for outside access
    # Enable SMTP-TLS on port 587 with specified options
    587 inet n - n - - smtpd
    -o smtpdclientrestrictions=
    -o smtpdrecipient_restrictions=permit_saslauthenticated,reject
    -o content_filter=
    -o smtpdenforcetls=yes
    # Enables SMTPS on port 465 with specified options.
    # This works well with Outlook 2003
    465 inet n - n - - smtpd
    -o smtpdtlswrappermode=yes
    -o smtpdclientrestrictions=
    -o smtpdrecipient_restrictions=permit_saslauthenticated,reject
    -o content_filter=
    After saving, from Terminal, issue:
    sudo postfix reload
    Note 1:
    You can achieve the same setup by uncommenting the appropriate lines in master.cf. This tip uses the port# to be clear.
    Note 2:
    You can assign most postfix main.cf options to each port using the format above. The example code disables the content filter for user submittted mail (not the best idea for all sites, but very effecient), smtpdclientsrestrictions are bypasses and smtpd_recipient restrictions are set to only allow authenticated users to submit.
    OK what do I paste and where?

  • SMTP Relaying Error Must Issue STARTTLS

    All:
    I'm using OS X server 10.6 and have configured mail services to relay mail thru my gmail account using my gmail account with authentication. But when I send mail I get a 'must issue STARTTLS command' from the gmail server. I set mail services to use SSL and use authentication.
    Anyone had this problem or is relaying thru an ISP ? If so, how did you set things up ?
    Dennis

    I set the +smtptls_securitylevel = may+
    I am now getting a failure in the log:
    {quote}Jan 20 09:15:36 maria postfix/pipe[23607]: 245C6556808: to=<[email protected]>, relay=dovecot, delay=0.08, delays=0.05/0.01/0/0.02, dsn=4.3.0, status=deferred (temporary failure){quote}
    Is there a way to set the port to:
    {quote}Port for TLS/STARTTLS: 587
    Port for SSL: 465 {quote}
    I do not see it in the file /etc/postfix/main.cf nor in the GUI.
    Edit: I added the port at the end:
    smtp.gmail.com:587
    and then got this error:
    {quote}Jan 20 09:23:52 maria postfix/smtp[23837]: certificate verification failed for smtp.gmail.com[74.125.159.109]:587: untrusted issuer /C=US/O=Equifax/OU=Equifax Secure Certificate Authority
    Jan 20 09:23:52 maria postfix/smtp[23837]: warning: SASL authentication failure: No worthy mechs found
    Jan 20 09:23:52 maria postfix/smtp[23837]: 819B8556847: to=<[email protected]>, relay=smtp.gmail.com[74.125.159.109]:587, delay=0.69, delays=0.01/0.1/0.57/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server smtp.gmail.com[74.125.159.109]: no mechanism available)
    {quote}
    Message was edited by: gilsurf

  • I regularly have 15 MB of Available Memory - Should I upgrade or is there an issue I should solve first? EtreCheck report pasted below

    Hello,
    My MacBook is running super slow. I downloaded Memory Clean from the App Store and I regularly have 15MB or free memory available.
    In Activity Monitor I usually see the following:
    ~800 MB kernel_task
    ~500 MB softwareupdated
    ~500 MB Image Capture Extension
    In Console, I see mdworker.bundle errors attributed to UID's: 501, 503, 1422
    My current UID from what I can tell is 502. Other UID's left over from various upgrades are 89, 99, 235.
    Lastly, Drive Genius is giving me a Drive Integrity Warning. But I can't create a bootable clone.
    I have no idea if the above problems are related. I'd like to think I just run a lot of stuff that eats my memory and upgrading the RAM would be the easy path. What say you all?
    -Jeff
    Problem description:
    I regularly have 15 MB of Available Memory - Should I upgrade or is there an issue I should solve first?
    EtreCheck version: 2.1.8 (121)
    Report generated February 27, 2015 at 1:42:38 PM EST
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        MacBook Pro (17-inch, Late 2011) (Technical Specifications)
        MacBook Pro - model: MacBookPro8,3
        1 2.5 GHz Intel Core i7 CPU: 4-core
        8 GB RAM Upgradeable
            BANK 0/DIMM0
                4 GB DDR3 1333 MHz ok
            BANK 1/DIMM0
                4 GB DDR3 1333 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery Health: Normal - Cycle count 412
    Video Information: ℹ️
        Intel HD Graphics 3000 - VRAM: 512 MB
            Color LCD 1920 x 1200
        AMD Radeon HD 6770M - VRAM: 1024 MB
    System Software: ℹ️
        OS X 10.10.2 (14C109) - Time since boot: 11 days 16:29:20
    Disk Information: ℹ️
        APPLE HDD HTS727575A9E362 disk0 : (750.16 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
            Macintosh HD (disk1) / : 748.93 GB (73.11 GB free)
                Encrypted AES-XTS Unlocked
                Core Storage: disk0s2 749.30 GB Online
        MATSHITADVD-R   UJ-8A8 
    USB Information: ℹ️
        Apple Inc. FaceTime HD Camera (Built-in)
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Computer, Inc. IR Receiver
    Thunderbolt Information: ℹ️
        Apple Inc. thunderbolt_bus
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /Applications/Boom.app
        [not loaded]    com.globaldelight.driver.BoomDevice (1.1 - SDK 10.9) [Click for support]
            /Applications/DiskWarrior.app
        [not loaded]    com.alsoft.Preview (4.4) [Click for support]
            /Applications/Parallels Desktop.app
        [not loaded]    com.parallels.kext.hidhook (9.0 24237.1028877) [Click for support]
        [not loaded]    com.parallels.kext.hypervisor (9.0 24237.1028877) [Click for support]
        [not loaded]    com.parallels.kext.netbridge (9.0 24237.1028877) [Click for support]
        [not loaded]    com.parallels.kext.usbconnect (9.0 24237.1028877) [Click for support]
        [not loaded]    com.parallels.kext.vnic (9.0 24237.1028877) [Click for support]
            /Applications/VMware Fusion.app
        [not loaded]    com.vmware.kext.vmci (90.5.7) [Click for support]
        [not loaded]    com.vmware.kext.vmioplug.12.1.17 (12.1.17) [Click for support]
        [not loaded]    com.vmware.kext.vmnet (0188.79.83) [Click for support]
        [not loaded]    com.vmware.kext.vmx86 (0188.79.83) [Click for support]
        [not loaded]    com.vmware.kext.vsockets (90.5.7) [Click for support]
    Startup Items: ℹ️
        HP IO: Path: /Library/StartupItems/HP IO
        Startup items are obsolete in OS X Yosemite
    Problem System Launch Agents: ℹ️
        [killed]    com.apple.CallHistoryPluginHelper.plist
        [killed]    com.apple.Maps.pushdaemon.plist
        [killed]    com.apple.telephonyutilities.callservicesd.plist
        [killed]    com.apple.xpc.loginitemregisterd.plist
        4 processes killed due to memory pressure
    Problem System Launch Daemons: ℹ️
        [killed]    com.apple.ctkd.plist
        [killed]    com.apple.emond.aslmanager.plist
        [killed]    com.apple.GSSCred.plist
        [killed]    com.apple.ifdreader.plist
        [failed]    com.apple.loginwindow.LFVTracer.plist
        [killed]    com.apple.nesessionmanager.plist
        [killed]    com.apple.periodic-monthly.plist
        [killed]    com.apple.periodic-weekly.plist
        [killed]    com.apple.xpc.smd.plist
        8 processes killed due to memory pressure
    Launch Agents: ℹ️
        [running]    com.bjango.istatmenusagent.plist [Click for support]
        [running]    com.bjango.istatmenusnotifications.plist [Click for support]
        [loaded]    com.google.keystone.agent.plist [Click for support]
        [loaded]    com.[redacted].UpdatePodcastsAgent.plist [Click for support]
        [unknown]    ~ [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [running]    com.backblaze.bzserv.plist [Click for support]
        [running]    com.bjango.istatmenusdaemon.plist [Click for support]
        [loaded]    com.google.keystone.daemon.plist [Click for support]
        [loaded]    com.macpaw.CleanMyMac2.Agent.plist [Click for support]
        [loaded]    com.prosofteng.DriveGenius.locum.plist [Click for support]
    User Launch Agents: ℹ️
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [loaded]    com.akamai.client.plist [Click for support]
        [running]    com.akamai.single-user-client.plist [Click for support]
        [running]    com.backblaze.bzbmenu.plist [Click for support]
        [loaded]    com.divx.agent.postinstall.plist [Click for support]
        [running]    com.ecamm.printopia.plist [Click for support]
        [loaded]    com.macpaw.CleanMyMac2Helper.diskSpaceWatcher.plist [Click for support]
        [loaded]    com.macpaw.CleanMyMac2Helper.scheduledScan.plist [Click for support]
        [loaded]    com.macpaw.CleanMyMac2Helper.trashWatcher.plist [Click for support]
        [running]    com.prosofteng.DGMonitor.plist [Click for support]
        [running]    ws.agile.1PasswordAgent.plist [Click for support]
    User Login Items: ℹ️
        Dropbox    Application Hidden (/Applications/Dropbox.app)
        Fantastical    Application Hidden (/Applications/Fantastical.app)
        TextExpander    Application Hidden (/Applications/TextExpander.app)
        HazelHelper    Application Hidden (/Users/[redacted]/Library/PreferencePanes/Hazel.prefPane/Contents/MacOS/HazelH elper.app)
    Internet Plug-ins: ℹ️
        o1dbrowserplugin: Version: 5.40.2.0 - SDK 10.8 [Click for support]
        Google Earth Web Plug-in: Version: 6.1 [Click for support]
        Default Browser: Version: 600 - SDK 10.10
        Flip4Mac WMV Plugin: Version: 3.3.1.3   - SDK 10.8 [Click for support]
        OfficeLiveBrowserPlugin: Version: 12.3.6 [Click for support]
        npP3Remote: Version: 0.3 [Click for support]
        AdobePDFViewerNPAPI: Version: 11.0.10 - SDK 10.6 [Click for support]
        DivXBrowserPlugin: Version: 2.2 [Click for support]
        Silverlight: Version: 5.1.30514.0 - SDK 10.6 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        iPhotoPhotocast: Version: 7.0
        googletalkbrowserplugin: Version: 5.40.2.0 - SDK 10.8 [Click for support]
        AdobePDFViewer: Version: 11.0.10 - SDK 10.6 [Click for support]
    User internet Plug-ins: ℹ️
        BrowserPlus_2.9.8: Version: 2.9.8 [Click for support]
        CitrixOnlineWebDeploymentPlugin: Version: 1.0 [Click for support]
        WebEx64: Version: 1.0 - SDK 10.5 [Click for support]
    Safari Extensions: ℹ️
        1Password
        FastestTube
        DivX Plus Web Player HTML5 <video>
        Open in Internet Explorer
    3rd Party Preference Panes: ℹ️
        Akamai NetSession Preferences  [Click for support]
        Backblaze Backup  [Click for support]
        BrowserPlus  [Click for support]
        Flash Player  [Click for support]
        Flip4Mac WMV  [Click for support]
        Hazel  [Click for support]
        Logitech Control Center  [Click for support]
        MacFUSE  [Click for support]
        Printopia  [Click for support]
        Xmarks for Safari  [Click for support]
    Time Machine: ℹ️
        Skip System Files: NO
        Mobile backups: ON
        Auto backup: YES
        Volumes being backed up:
            Macintosh HD: Disk size: 748.93 GB Disk used: 675.81 GB
        Destinations:
            Time Machine [Local]
            Total size: 999.85 GB
            Total number of backups: 49
            Oldest backup: 2014-10-30 20:23:53 +0000
            Last backup: 2015-02-26 13:07:38 +0000
            Size of backup disk: Too small
                Backup size 999.85 GB < (Disk used 675.81 GB X 3)
    Top Processes by CPU: ℹ️
            12%    WindowServer
             7%    bzfilelist
             1%    loginwindow
             1%    Dropbox
             0%    bztransmit
    Top Processes by Memory: ℹ️
        361 MB    bztransmit
        326 MB    Finder
        206 MB    Safari
        163 MB    WindowServer
        146 MB    Console
    Virtual Memory Information: ℹ️
        647 MB    Free RAM
        2.99 GB    Active RAM
        2.45 GB    Inactive RAM
        1.67 GB    Wired RAM
        10.17 TB    Page-ins
        6.32 GB    Page-outs
    Diagnostics Information: ℹ️
        Feb 27, 2015, 09:46:13 AM    /Users/[redacted]/Library/Logs/DiagnosticReports/helpd_2015-02-27-094613_[redac ted].crash

    Ok.
    I think that got it all. Anything else you see?
    Problem description:
    Uninstalled CleanMyMac2
    EtreCheck version: 2.1.8 (121)
    Report generated February 27, 2015 at 3:31:40 PM EST
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        MacBook Pro (17-inch, Late 2011) (Technical Specifications)
        MacBook Pro - model: MacBookPro8,3
        1 2.5 GHz Intel Core i7 CPU: 4-core
        8 GB RAM Upgradeable
            BANK 0/DIMM0
                4 GB DDR3 1333 MHz ok
            BANK 1/DIMM0
                4 GB DDR3 1333 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery Health: Normal - Cycle count 412
    Video Information: ℹ️
        Intel HD Graphics 3000 - VRAM: 512 MB
            Color LCD 1920 x 1200
        AMD Radeon HD 6770M - VRAM: 1024 MB
    System Software: ℹ️
        OS X 10.10.2 (14C109) - Time since boot: 0:51:42
    Disk Information: ℹ️
        APPLE HDD HTS727575A9E362 disk0 : (750.16 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
            Macintosh HD (disk1) / : 748.93 GB (76.14 GB free)
                Encrypted AES-XTS Unlocked
                Core Storage: disk0s2 749.30 GB Online
        MATSHITADVD-R   UJ-8A8 
    USB Information: ℹ️
        Apple Inc. FaceTime HD Camera (Built-in)
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Computer, Inc. IR Receiver
    Thunderbolt Information: ℹ️
        Apple Inc. thunderbolt_bus
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /Applications/Boom.app
        [not loaded]    com.globaldelight.driver.BoomDevice (1.1 - SDK 10.9) [Click for support]
            /Applications/DiskWarrior.app
        [not loaded]    com.alsoft.Preview (4.4) [Click for support]
            /Applications/Parallels Desktop.app
        [not loaded]    com.parallels.kext.hidhook (9.0 24237.1028877) [Click for support]
        [not loaded]    com.parallels.kext.hypervisor (9.0 24237.1028877) [Click for support]
        [not loaded]    com.parallels.kext.netbridge (9.0 24237.1028877) [Click for support]
        [not loaded]    com.parallels.kext.usbconnect (9.0 24237.1028877) [Click for support]
        [not loaded]    com.parallels.kext.vnic (9.0 24237.1028877) [Click for support]
            /Applications/VMware Fusion.app
        [not loaded]    com.vmware.kext.vmci (90.5.7) [Click for support]
        [not loaded]    com.vmware.kext.vmioplug.12.1.17 (12.1.17) [Click for support]
        [not loaded]    com.vmware.kext.vmnet (0188.79.83) [Click for support]
        [not loaded]    com.vmware.kext.vmx86 (0188.79.83) [Click for support]
        [not loaded]    com.vmware.kext.vsockets (90.5.7) [Click for support]
    Startup Items: ℹ️
        HP IO: Path: /Library/StartupItems/HP IO
        Startup items are obsolete in OS X Yosemite
    Launch Agents: ℹ️
        [running]    com.bjango.istatmenusagent.plist [Click for support]
        [running]    com.bjango.istatmenusnotifications.plist [Click for support]
        [loaded]    com.google.keystone.agent.plist [Click for support]
        [loaded]    com.[redacted].UpdatePodcastsAgent.plist [Click for support]
        [unknown]    ~ [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [running]    com.backblaze.bzserv.plist [Click for support]
        [running]    com.bjango.istatmenusdaemon.plist [Click for support]
        [loaded]    com.google.keystone.daemon.plist [Click for support]
        [loaded]    com.prosofteng.DriveGenius.locum.plist [Click for support]
    User Launch Agents: ℹ️
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [loaded]    com.akamai.client.plist [Click for support]
        [running]    com.akamai.single-user-client.plist [Click for support]
        [running]    com.backblaze.bzbmenu.plist [Click for support]
        [loaded]    com.divx.agent.postinstall.plist [Click for support]
        [running]    com.ecamm.printopia.plist [Click for support]
        [running]    ws.agile.1PasswordAgent.plist [Click for support]
    User Login Items: ℹ️
        Dropbox    Application Hidden (/Applications/Dropbox.app)
        Fantastical    Application Hidden (/Applications/Fantastical.app)
        TextExpander    Application Hidden (/Applications/TextExpander.app)
        HazelHelper    Application Hidden (/Users/[redacted]/Library/PreferencePanes/Hazel.prefPane/Contents/MacOS/HazelH elper.app)
    Internet Plug-ins: ℹ️
        o1dbrowserplugin: Version: 5.40.2.0 - SDK 10.8 [Click for support]
        Google Earth Web Plug-in: Version: 6.1 [Click for support]
        Default Browser: Version: 600 - SDK 10.10
        Flip4Mac WMV Plugin: Version: 3.3.1.3   - SDK 10.8 [Click for support]
        OfficeLiveBrowserPlugin: Version: 12.3.6 [Click for support]
        npP3Remote: Version: 0.3 [Click for support]
        AdobePDFViewerNPAPI: Version: 11.0.10 - SDK 10.6 [Click for support]
        DivXBrowserPlugin: Version: 2.2 [Click for support]
        Silverlight: Version: 5.1.30514.0 - SDK 10.6 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        iPhotoPhotocast: Version: 7.0
        googletalkbrowserplugin: Version: 5.40.2.0 - SDK 10.8 [Click for support]
        AdobePDFViewer: Version: 11.0.10 - SDK 10.6 [Click for support]
    User internet Plug-ins: ℹ️
        BrowserPlus_2.9.8: Version: 2.9.8 [Click for support]
        CitrixOnlineWebDeploymentPlugin: Version: 1.0 [Click for support]
        WebEx64: Version: 1.0 - SDK 10.5 [Click for support]
    Safari Extensions: ℹ️
        1Password
        FastestTube
        DivX Plus Web Player HTML5 <video>
        Open in Internet Explorer
    3rd Party Preference Panes: ℹ️
        Akamai NetSession Preferences  [Click for support]
        Backblaze Backup  [Click for support]
        BrowserPlus  [Click for support]
        Flash Player  [Click for support]
        Flip4Mac WMV  [Click for support]
        Hazel  [Click for support]
        Logitech Control Center  [Click for support]
        MacFUSE  [Click for support]
        Printopia  [Click for support]
        Xmarks for Safari  [Click for support]
    Time Machine: ℹ️
        Skip System Files: NO
        Mobile backups: ON
        Auto backup: YES
        Volumes being backed up:
            Macintosh HD: Disk size: 748.93 GB Disk used: 672.78 GB
        Destinations:
            Time Machine [Local]
            Total size: 999.85 GB
            Total number of backups: 49
            Oldest backup: 2014-10-30 20:23:53 +0000
            Last backup: 2015-02-26 13:07:38 +0000
            Size of backup disk: Too small
                Backup size 999.85 GB < (Disk used 672.78 GB X 3)
    Top Processes by CPU: ℹ️
            32%    Finder
            25%    Console
            14%    WindowServer
             4%    NotificationCenter
             3%    hazelworker
    Top Processes by Memory: ℹ️
        395 MB    bztransmit
        186 MB    Finder
        146 MB    Console
        146 MB    WindowServer
        129 MB    mds_stores
    Virtual Memory Information: ℹ️
        1.51 GB    Free RAM
        4.26 GB    Active RAM
        1.38 GB    Inactive RAM
        1.44 GB    Wired RAM
        21.08 GB    Page-ins
        3 MB    Page-outs
    Diagnostics Information: ℹ️
        Feb 27, 2015, 02:36:10 PM    Self test - passed
        Feb 27, 2015, 02:13:40 PM    /Library/Logs/DiagnosticReports/Memory Clean_2015-02-27-141340_[redacted].cpu_resource.diag [Click for details]
        Feb 27, 2015, 01:49:15 PM    /Library/Logs/DiagnosticReports/WindowServer_2015-02-27-134915_[redacted].cpu_r esource.diag [Click for details]
        Feb 27, 2015, 09:46:13 AM    /Users/[redacted]/Library/Logs/DiagnosticReports/helpd_2015-02-27-094613_[redac ted].crash

  • Is anyone else having email problems such as apps exiting in the middle of an email? It may be a wireless issue. I use First Class for work and yahoo email for personal. I will be in the middle of typing a long email and the app just quits, all data lost.

    Is anyone else having email problems such as apps exiting in the middle of an email? It may be a wireless issue. I use First Class for work and yahoo email for personal. I will be in the middle of typing a long email and the app just quits, all data lost.

    Have you tried restarting or resetting your iPad?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after the iPad shuts down, then press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds). Ignore the "Slide to power off"

  • How to set role which can issue only one command

    I am thinking about setting role, which will be allowed to issue olny one command. I have created role test. Which has the following entries in the following files:
    /etc/user_attr
    test::::profiles=OneCommand;type=role
    /etc/security/exec_attr
    OneCommand:solaris:cmd:::/tmp/data.sh:euid=0
    After this I sill could issue all comands, not only test command /tmp/data.sh.
    When I issued comand profiles on test role I received the following:
    bash-3.00$ profiles test
    OneCommand
    Basic Solaris User
    All
    So I commented line in the /etc/policy.conf to read:
    #PROFS_GRANTED=Basic Solaris User
    After that, when I try to issue /tmp/data.sh command as a test role I receive the following error:
    $ /tmp/data.sh
    pfexec: Exec format error
    Does anybody know how to set up the role which can issue only one command ? Maybe there is a way to do this in the way which wil not affect another roles (ie, not to touch /etc/policy.conf).
    Best regards

    RadekW wrote:
    I am thinking about setting role, which will be allowed to issue olny one command. I have created role test. Which has the following entries in the following files:They will need the ability to run at least a profile shell otherwise all bets are off. So now you're down to two commands. :-)
    bash-3.00$ profiles test
    OneCommand
    Basic Solaris User
    AllFirst you need to define what already exists by default. (policy.conf)
    Then you get to change those defaults or create a new default list just for test.
    Then you get to add a role or profile for test that allows the execution of a profile shell and one command.
    Then you should test all of the user accounts to ensure that something didn't break. This step might be a little overkill.
    alan

  • How to issue an OS command?

    Hello,
    Does anyone know if there is a way to issue an OS command from within an application made in Application Express? Actually, I need to start an outside application, but even just issuing an OS command would be a start.
    Best regards,
    Milos

    Re: execute OS command

Maybe you are looking for

  • Compile PL/SQL with JDEV 11g TP4 - Compile button missing ?

    Hi I have been working through the database development with Jdeveloper tutorial: http://www.oracle.com/technology/obe/obe11jdev/11/db_dev/obe_%20databasedevmt.htm this, as name suggests, discusses db development with jdev 11g TP4. However I seem to

  • Airport and Apple Script - on and off script

    I've had this problem for a while, trying to turn the airport card in a computer on and off using and apple script. i need it to automatically turn on or off depending on which account if logging into the computer. I did find that a solution can be f

  • Package upload fails

    Package upload to SDS via web frontend fails. Top of the result page says "Upload command finished successfully." and all the RPM packages are marked OK. But at the bottom of the page, an error message occured: "ADUVA-error: 118162432 Content-type: t

  • Mail password suddenly stops working

    For the last week. when I try to get new emails in Mac Mail I have been prompted for the server password but only after about 8pm.  I try the password but it is rejected.  Next morning things are fine, back to normal, no password prompt until after a

  • CS6 menu font size change for QHD screens windows 8.1?

    all menus etc too small to read on laptop with qhd screen (3200 x 1800) Other software is all OK, just CS6 and a few others that cannot adapt. is there a solution?