Setup Command Line Mail

Several online sites have guides for setting up CLI mail for OS X, but they're all written pre-Snow Leopard (and pre-Leopard from what I can find).
Some things (like /etc/hostconfig) list as being deprecated. So what's the latest method for setting up mail native to the CLI? I've always had my machines setup to do things behind the scenes and then communicate with me via email, but so far this has eluded me in Snow Leopard.
Thanks for the help.

I am trying to set up my email view so that I have FROM, SUBJECT, DATE, ATTACHMENTS. but i can't figure out how to add a subject any thoughts?

Similar Messages

  • Command Line Mail and Contacts

    I love alpine, but as it can't load my contacts like gmail's web interface I feel like it can never be a daily driver.  Is there a way to get contacts from alpine or another command line mail service?  Does anyone use command line mail services?

    Trilby wrote:Did you follow the Mutt wiki to set up your ~/.muttrc?
    Well, that would explain a lot (gah).  I used an article I found on lifehacker and it didn't work.  This did though!  Is there a way to set it so it only retrieves x amount of messages from my INBOX?  Because I have tons of messages and cosequently it takes forever to start up.

  • How to set plug-in Java Runtime parameters on JRE setup command line

    Hi all:
    I need to install JRE and set the Java Runtime Parameters -Xmx
    by command line ..
    I mean I don't want enter Control panel and set this parameter manually in Java Runtime Parameters textBox..
    thanx.
    Best regards
    w.shiha

    Documentation for controlling the installation is sadly lacking in detail. This is the best I have seen for the Windows environment:
    http://java.com/en/download/help/silent_install.xml
    But, there are numerous other PROPERTY variables that are not discussed. Particularly annoying is the addition of yet another JavaUpdate item with the release of 1.5.0_05. If you can get more information, please post a link to it here.

  • Command line mail not working since Server 2.2

    Since Mountain Lion, everytime Server.app updates it borks my previous mail settings/hacks/workarounds to the issues with the last version. I just want sendmail, mail, postfix, etc to work and stay working. I even have my own list of stuff to reapply with each Server.app update, but sadly even that has stopped working.
    Just basic mail won't even work:
    $ mail adam
    Subject: test
    This is a test mail
    ⌃D
    $ mail
    No mail for adam
    Here are my current settings.
    $ sudo serveradmin fullstatus mail
    mail:setStateVersion = 1
    mail:readWriteSettingsVersion = 1
    mail:connectionCount = 0
    mail:servicePortsRestrictionInfo = _empty_array
    mail:protocolsArray:_array_index:0:status = "ON"
    mail:protocolsArray:_array_index:0:kind = "INCOMING"
    mail:protocolsArray:_array_index:0:protocol = "IMAP"
    mail:protocolsArray:_array_index:0:state = "STOPPED"
    mail:protocolsArray:_array_index:0:error = ""
    mail:protocolsArray:_array_index:1:status = "ON"
    mail:protocolsArray:_array_index:1:kind = "INCOMING"
    mail:protocolsArray:_array_index:1:protocol = "POP3"
    mail:protocolsArray:_array_index:1:state = "STOPPED"
    mail:protocolsArray:_array_index:1:error = ""
    mail:protocolsArray:_array_index:2:status = "ON"
    mail:protocolsArray:_array_index:2:kind = "INCOMING"
    mail:protocolsArray:_array_index:2:protocol = "SMTP"
    mail:protocolsArray:_array_index:2:state = "RUNNING"
    mail:protocolsArray:_array_index:2:error = ""
    mail:protocolsArray:_array_index:3:status = "ON"
    mail:protocolsArray:_array_index:3:kind = "OUTGOING"
    mail:protocolsArray:_array_index:3:protocol = "SMTP"
    mail:protocolsArray:_array_index:3:state = "RUNNING"
    mail:protocolsArray:_array_index:3:error = ""
    mail:protocolsArray:_array_index:4:status = "ON"
    mail:protocolsArray:_array_index:4:kind = "INCOMING"
    mail:protocolsArray:_array_index:4:protocol = "Junk_mail_filter"
    mail:protocolsArray:_array_index:4:state = "RUNNING"
    mail:protocolsArray:_array_index:4:error = ""
    mail:protocolsArray:_array_index:5:status = "ON"
    mail:protocolsArray:_array_index:5:kind = "INCOMING"
    mail:protocolsArray:_array_index:5:protocol = "Virus_scanner"
    mail:protocolsArray:_array_index:5:state = "RUNNING"
    mail:protocolsArray:_array_index:5:error = ""
    mail:startedTime = "2013-02-05 16:26:45 +0000"
    mail:logPaths:IMAP Log = "/Library/Logs/Mail/mailaccess.log"
    mail:logPaths:Server Log = "/Library/Logs/Mail/mailaccess.log"
    mail:logPaths:POP Log = "/Library/Logs/Mail/mailaccess.log"
    mail:logPaths:SMTP Log = "/var/log/mail.log"
    mail:logPaths:Migration Log = "/Library/Logs/MailMigration.log"
    mail:logPaths:Virus Log = "/Library/Logs/Mail/clamav.log"
    mail:logPaths:Amavisd Log = "/Library/Logs/Mail/amavis.log"
    mail:logPaths:Virus DB Log = "/Library/Logs/Mail/freshclam.log"
    mail:imapStartedTime = ""
    mail:servicePortsAreRestricted = "NO"
    mail:state = "RUNNING"
    mail:postfixStartedTime = "2013-02-05 16:26:45 +0000"

    Yes, the ProgramArguments key contains the exact array you posted.
    And here is the output for
    sudo serveradmin settings mail
    mail:postfix:smtpd_pw_server_security_options:_array_index:0 = "cram-md5"
    mail:postfix:smtpd_pw_server_security_options:_array_index:1 = "digest-md5"
    mail:postfix:smtpd_pw_server_security_options:_array_index:2 = "login"
    mail:postfix:smtpd_pw_server_security_options:_array_index:3 = "plain"
    mail:postfix:spam_quarantine = "[email protected]"
    mail:postfix:smtp_reject_list_enabled = no
    mail:postfix:bayes_path = "/Library/Server/Mail/Data/scanner/amavis/.spamassassin/bayes"
    mail:postfix:smtp_sasl_auth_enable = yes
    mail:postfix:whitelist_from = _empty_array
    mail:postfix:submit_cred:XXXXXXX.local:username = "submit"
    mail:postfix:submit_cred:XXXXXXX.local:password = "XXXXXXXXXXXXXXXXXXXXXXX"
    mail:postfix:smtp_auth_relay_dict:smtp_auth_relay_userid = "[email protected]"
    mail:postfix:smtp_auth_relay_dict:smtp_auth_relay_pwd = "XXXXXXXXXXXXXX"
    mail:postfix:smtp_auth_relay_dict:smtp_auth_relay_host = "smtp://smtp.gmail.com:587"
    mail:postfix:client_permit_mynetworks = yes
    mail:postfix:smtpd_tls_cert_file = "/etc/certificates/XXXXXXX.local.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.cert.pem"
    mail:postfix:maps_rbl_domains_enabled = no
    mail:postfix:spam_subject_tag = "***JUNK MAIL*** "
    mail:postfix:smtpd_tls_CAfile = "/etc/certificates/XXXXXXX.local.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.chain.pem"
    mail:postfix:message_size_limit_enabled = yes
    mail:postfix:virus_db_last_update = "2013-02-06 13:52:18 +0000"
    mail:postfix:mail_enabled_groups = _empty_array
    mail:postfix:add_whitelist_domain = _empty_array
    mail:postfix:virus_scan_enabled = yes
    mail:postfix:spam_ok_locales = "en"
    mail:postfix:spam_notify_admin_email = "[email protected]"
    mail:postfix:black_hole_domains:_array_index:0 = "zen.spamhaus.org"
    mail:postfix:virus_db_log_level = "notice"
    mail:postfix:spam_scan_enabled = yes
    mail:postfix:virus_quarantine = "[email protected]"
    mail:postfix:reject_unauth_piplining_enabled = no
    mail:postfix:blacklist_from = _empty_array
    mail:postfix:spam_rewrite_subject = yes
    mail:postfix:message_size_limit = 10485760
    mail:postfix:greylist_disable = no
    mail:postfix:mynetworks:_array_index:0 = "127.0.0.0/8"
    mail:postfix:virus_log_level = "notice"
    mail:postfix:host_whitelist = _empty_array
    mail:postfix:rbl_override_list = _empty_array
    mail:postfix:group_expansion:start_interval = 10
    mail:postfix:group_expansion:enable_group_expansion = no
    mail:postfix:virus_notify_recipients = no
    mail:postfix:luser_relay_enabled = no
    mail:postfix:mydomain = "XXXXXXX.local"
    mail:postfix:mydestination:_array_index:0 = "localhost"
    mail:postfix:virus_notify_admin_email = "[email protected]"
    mail:postfix:enable_virtual_domains = yes
    mail:postfix:spam_notify_admin = no
    mail:postfix:required_hits = 6
    mail:postfix:add_whitelist_host = _empty_array
    mail:postfix:always_bcc_enabled = no
    mail:postfix:enable_var_mail = no
    mail:postfix:junk_mail_userid = "junkmail"
    mail:postfix:smtpd_tls_key_file = "/etc/certificates/XXXXXXX.local.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.key.pem"
    mail:postfix:enable_smtp = yes
    mail:postfix:relayhost = "smtp://smtp.gmail.com:587"
    mail:postfix:not_junk_mail_userid = "notjunkmail"
    mail:postfix:mynetworks_enabled = yes
    mail:postfix:spam_ok_languages = "en fr de ja sw ta"
    mail:postfix:virtual_domains:_array_index:0 = "imap.gmail.com"
    mail:postfix:rbl_override_enabled = no
    mail:postfix:log_rolling_days = 1
    mail:postfix:enable_smtp_in = yes
    mail:postfix:tls_server_options = "use"
    mail:postfix:spam_action = "deliver"
    mail:postfix:log_rolling_days_enabled = yes
    mail:postfix:spam_log_level = "warn"
    mail:postfix:smtp_uce_controlls = 1
    mail:postfix:relayhost_enabled = yes
    mail:postfix:virus_action = "delete"
    mail:postfix:virus_db_update_days = 12
    mail:postfix:virus_notify_admin = no
    mail:postfix:domain_whitelist = _empty_array
    mail:postfix:enable_smtp_out = yes
    mail:postfix:text_only_attachments = yes
    mail:postfix:reject_unknown_client_enabled = no
    mail:postfix:log_level = "warn"
    mail:postfix:myhostname = "XXXXXXX.local"
    mail:global:auto_auth = yes
    mail:global:service_data_path = "/Library/Server/Mail"
    mail:imap:imap_auth_cram_md5 = yes
    mail:imap:srvtab = "/etc/srvtab"
    mail:imap:imap_auth_clear = yes
    mail:imap:loginuseacl = no
    mail:imap:popexpiretime = 0
    mail:imap:notifysocket = "/var/imap/socket/notify"
    mail:imap:timeout = 30
    mail:imap:max_imap_connections = 1000
    mail:imap:sieve_maxscripts = 5
    mail:imap:logtimestamps = no
    mail:imap:quota_enforce_restrictions = no
    mail:imap:tls_imap_key_file = ""
    mail:imap:mupdate_authname = ""
    mail:imap:newsprefix = ""
    mail:imap:proxyservers = _empty_array
    mail:imap:junk_mail_userid = ""
    mail:imap:singleinstancestore = yes
    mail:imap:mupdate_password = ""
    mail:imap:imap_auth_digest_md5 = yes
    mail:imap:tls_cert_file = "/etc/certificates/XXXXXXX.local.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.cert.pem"
    mail:imap:lmtp_admins = _empty_array
    mail:imap:poptimeout = 10
    mail:imap:postuser = ""
    mail:imap:imap_auth_plain = yes
    mail:imap:quota_custom_error = _empty_dictionary
    mail:imap:tls_imap_cert_file = ""
    mail:imap:aps_topic = "com.apple.mail.XServer.e8cc7328-2fe9-4b6f-aae5-b6f26f9287b3"
    mail:imap:sieve_proxyservers = _empty_array
    mail:imap:request_enable_webmail = no
    mail:imap:lmtp_luser_relay_enabled = no
    mail:imap:unixhierarchysep = no
    mail:imap:urlauth_hostport = ""
    mail:imap:imap_auth_gssapi = no
    mail:imap:partition-default = "/Library/Server/Mail/Data/mail"
    mail:imap:allowanonymouslogin = no
    mail:imap:quota_custom_warning_message_path = ""
    mail:imap:imapidlepoll = 60
    mail:imap:quota_custom_error_message_path = ""
    mail:imap:enable_pop = yes
    mail:imap:tls_session_timeout = 1440
    mail:imap:mupdate_server = ""
    mail:imap:mupdate_realm = ""
    mail:imap:auth_gssapi_hostname = ""
    mail:imap:enable_sieve = yes
    mail:imap:lmtpsocket = "/var/imap/socket/lmtp"
    mail:imap:enable_quota_warnings = no
    mail:imap:mupdate_port = ""
    mail:imap:postmaster = "postmaster"
    mail:imap:pop_auth_gssapi = no
    mail:imap:pop_auth_apop = yes
    mail:imap:deleteright = "c"
    mail:imap:proxyd_allow_status_referral = no
    mail:imap:sharedprefix = "Shared Folders"
    mail:imap:sasl_auto_transition = no
    mail:imap:tls_ca_file = "/etc/certificates/XXXXXXX.local.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.chain.pem"
    mail:imap:sasl_minimum_layer = 0
    mail:imap:sievedir = ""
    mail:imap:debug_command = ""
    mail:imap:duplicatesuppression = yes
    mail:imap:tls_lmtp_key_file = ""
    mail:imap:servername = ""
    mail:imap:quota_full_tempfail = yes
    mail:imap:partitions = _empty_array
    mail:imap:tls_imap_require_cert = no
    mail:imap:sieve_admins = _empty_array
    mail:imap:global_quota = 0
    mail:imap:mupdate_retry_delay = 20
    mail:imap:not_junk_mail_userid = ""
    mail:imap:quota_custom_warning = _empty_dictionary
    mail:imap:enable_imap = yes
    mail:imap:popminpoll = 0
    mail:imap:tls_pop3_key_file = ""
    mail:imap:sendmail = "/usr/lib/sendmail"
    mail:imap:tls_lmtp_cert_file = ""
    mail:imap:tls_require_cert = no
    mail:imap:notification_server_enabled = yes
    mail:imap:tls_sieve_require_cert = no
    mail:imap:defaultpartition = "default"
    mail:imap:pop_auth_clear = yes
    mail:imap:allowallsubscribe = no
    mail:imap:sasl_pwcheck_method = "auxprop"
    mail:imap:sieve_maxscriptsize = 32
    mail:imap:tls_sieve_key_file = ""
    mail:imap:tls_ca_path = ""
    mail:imap:defaultacl = "anyone lrs"
    mail:imap:reject8bit = no
    mail:imap:tls_key_file = "/etc/certificates/XXXXXXX.local.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.key.pem"
    mail:imap:tls_pop3_require_cert = no
    mail:imap:sasl_maximum_layer = 256
    mail:imap:autocreatequota = 0
    mail:imap:tls_sieve_cert_file = ""
    mail:imap:userprefix = "Other Users"
    mail:imap:mupdate_admins = _empty_array
    mail:imap:postmaster_address = "[email protected]"
    mail:imap:mupdate_username = ""
    mail:imap:quota_warn_frequency_days = 0
    mail:imap:tls_pop3_cert_file = ""
    mail:imap:aps_topic_enabled = yes
    mail:imap:quotawarn = 80
    mail:imap:plaintextloginpause = 0
    mail:imap:enforce_quotas = no
    mail:imap:tls_server_options = "require"
    mail:imap:allowplaintext = yes
    mail:imap:loginrealms = _empty_array
    mail:imap:lmtp_luser_relay = ""
    mail:imap:imapidresponse = yes
    mail:imap:tls_cipher_list:_array_index:0 = "DEFAULT"
    mail:imap:imap_auth_login = yes
    mail:imap:admins = _empty_array
    mail:imap:altnamespace = no
    mail:imap:sieveusehomedir = no
    mail:imap:tls_lmtp_require_cert = no
    mail:imap:log_level = "warn"
    mail:imap:umask = "077"
    mail:imap:hashimapspool = no
    mail:imap:imap_proxyservers = _empty_array

  • Robohelp 7 HTML command line error

    I am trying to setup command line compilation for the project
    and i get this error from RHCL.exe
    Scanning project for compilation....
    Scanning finished.
    Error: Failed to create TRS file. Please use RoboHelp to
    recover the project.
    Unexpected Error: Failed to prepare single source data for
    RHCL. Please try to compile it in RoboHTML.
    The project is under source control

    Hi Mykola -
    Welcome aboard! First, let me ask you this: have you used
    command line compilation successfully before in this or any other
    project? And can you generate successfully in this project using
    the UI?
    It would be helpful if you would post your command line so
    that I can see the format.
    I don't think it matters that your project is
    source-controlled. I generate both types via the command line, and
    it's not a problem.
    G

  • Create Users with Mail enabled in dscl or command line

    I have figured out how to use the dscl to add a user.
    example:
    $ sudo dscl . create /users/rothman uid 701
    $ sudo dscl . create /users/rothman gid 20
    $ sudo dscl . create /users/rothman realname "Ernest Rothman"
    $ sudo dscl . create /users/rothman passwd \*
    I went as far as to launch WorkGroup manager to enable Mail.
    The following gave me the key values:
    dscl . read /Users/test MailAttribute > mailsettings.txt
    When I try to replace from the txt file. WorkGroup Manager than believes the Mail is not enabled.
    How do I use dscl or a terminal command to enable the user with mail server and to use IMAP Only?
    I do not want to always have to remotely connect to launch Workgroup Manager to enable mail for new users.
    I hope you can help for I am new dscl or even NetInfo command line tools.
    I have tried these, but I guess it does't like how it is being restored into that property.
    dscl . create /Users/test MailAttribute `< mailsettings.txt`
    <?xml version="1.0" encoding="UTF-8"?>
    <dict>
    <key>kAPOPRequired</key>
    <string>APOPNotRequired</string>
    <key>kAltMailStoreLoc</key>
    <string></string>
    <key>kAttributeVersion</key>
    <string>Apple Mail 1.0</string>
    <key>kAutoForwardValue</key>
    <string></string>
    <key>kIMAPLoginState</key>
    <string>IMAPAllowed</string>
    <key>kMailAccountLocation</key>
    <string>192.168.181.132</string>
    <key>kMailAccountState</key>
    <string>Enabled</string>
    <key>kPOP3LoginState</key>
    <string>POP3Deny</string>
    <key>kUserDiskQuota</key>
    <string>0</string>
    </dict>
    I have also tried appending by doing something like this.
    dscl . create /Users/test MailAttribute '<?xml version="1.0" encoding="UTF-8"?>’
    dscl . append /Users/test MailAttribute ‘<dict>’
    dscl . append /Users/test MailAttribute ‘<key>kAPOPRequired</key>’
    dscl . append /Users/test MailAttribute ‘<string>APOPNotRequired</string>’
    dscl . append /Users/test MailAttribute ‘<key>kAltMailStoreLoc</key>’
    dscl . append /Users/test MailAttribute ‘<string></string>’
    dscl . append /Users/test MailAttribute ‘<key>kAttributeVersion</key>’
    dscl . append /Users/test MailAttribute ‘<string>Apple Mail 1.0</string>’
    dscl . append /Users/test MailAttribute ‘<key>kAutoForwardValue</key>’
    dscl . append /Users/test MailAttribute ‘<string></string>’
    dscl . append /Users/test MailAttribute ‘<key>kIMAPLoginState</key>’
    dscl . append /Users/test MailAttribute ‘<string>IMAPAllowed</string>’
    dscl . append /Users/test MailAttribute ‘<key>kMailAccountLocation</key>’
    dscl . append /Users/test MailAttribute ‘<string>192.168.181.132</string>’
    dscl . append /Users/test MailAttribute ‘<key>kMailAccountState</key>’
    dscl . append /Users/test MailAttribute ‘<string>Enabled</string>’
    dscl . append /Users/test MailAttribute ‘<key>kPOP3LoginState</key>’
    dscl . append /Users/test MailAttribute ‘<string>POP3Deny</string>’
    dscl . append /Users/test MailAttribute ‘<key>kUserDiskQuota</key>’
    dscl . append /Users/test MailAttribute ‘<string>0</string>’
    dscl . append /Users/test MailAttribute ‘</dict>’

    Got it to take as a single statement.
    dscl . create /users/test applemail "<?xml version='1.0' encoding='UTF-8'?> <dict> <key>kAPOPRequired</key> <string>APOPNotRequired</string> <key>kAltMailStoreLoc</key> <string></string> <key>kAttributeVersion</key> <string>Apple Mail 1.0</string> <key>kAutoForwardValue</key> <string></string> <key>kIMAPLoginState</key> <string>IMAPAllowed</string> <key>kMailAccountLocation</key> <string>192.168.181.132</string> <key>kMailAccountState</key> <string>Enabled</string> <key>kPOP3LoginState</key> <string>POP3Deny</string> <key>kUserDiskQuota</key> <string>0</string> </dict>"
    Doing the above showed in WorkGroup manager and I tested and the user received a email, so now I can automate adding users without needing the GUI. *Just to note you still have to setup mail services and your virtual, aliases files for postfix. This is just so the user is opened up to be allowed to receive email in the first place.
    I still could not seem to pipe a file into dscl command even though the file was a single line of text. I had planned to embed this in a single command so no big deal.

  • Cron mail is not delivered, but can from command line

    Hello, I have a strange problem with cron and sendmail that I cannot understand.
    On my Solaris hosts, running Solaris 9 and 10, I have setup sendmail to masquerade to a Solaris zone acting as a mail relay.
    This works fine, I can send mail from the command line using, for example:
    # /usr/bin/cat somefile | /usr/bin/mailx -s "test message" usernameAs I said, on all hosts, this works fine.
    When I add the above command to a cron job, to email me a log for example, the mail is not deliverable and comes back to me (an alias as root).
    Is this a mailx/cron thing or am I missing something??
    I have copied the sendmail.cf file from a working machine to one of the ones with a problem and still the same problem exists.
    My config file (relay.mc) for sendmail is as follows on each host that attempts to use the relay:
    divert(-1)
    # Copyright (c) 1983 Eric P. Allman
    # Copyright (c) 1988, 1993
    #       The Regents of the University of California.  All rights reserved.
    # Copyright (c) 1997-2000
    #       Sun Microsystems, Inc.  All rights reserved.
    # ident "@(#)subsidiary.mc      1.10    00/12/14 SMI"
    #  This is a configuration file for SunOS 5.8 (a.k.a. Solaris 8) and later
    #  subsidiary machines.  It has support for local and SMTP mail.  The
    #  SMART_HOST macro is enabled, which means that messages will be sent to
    #  the SMART_HOST, which is set to mailhost.$m ($m is the local domain).
    #  A short-cut rule is also defined, which says if the recipient host is
    #  in the local domain, send to it directly instead of the smart host.
    #  Note: if you do not need a smart host; i.e., you are in an environment
    #  where MX records are properly defined, then you should not be using
    #  this subsidiary config file; use main instead.
    #  If you want to customize this further, copy it to a name appropriate
    #  for your environment and do the modifications there.
    divert(0)dnl
    VERSIONID(`@(#)subsidiary.mc    1.10 (Sun) 12/14/00')
    OSTYPE(`solaris8')dnl
    DOMAIN(`solaris-generic')dnl
    define(`SMART_HOST', `mailhost$?m.$m$.')
    FEATURE(`masquerade_envelope')
    MASQUERADE_AS(`domain.com')
    MAILER(`local')dnl
    MAILER(`smtp')dnl
    define(`MAIL_HUB', `mailhost.domain.com')
    define(`SMART_HOST', `mailhost.domain.com')
    LOCAL_NET_CONFIG
    R$* < @ $* .$m. > $*    $#esmtp $@ $2.$m $: $1 < @ $2.$m. > $3Any advice would be greatly appreciated
    Thank you!

    What's the mail error you get? Any meaningful or pertinent output in system/mail logs?

  • Mail bounces when sent from command-line, works from PHPMailer, Mail.app

    Recently, any mail send from the command-line (manually, or via automated scripts) is getting rejected. However, messages composed with, say, PHPMailer are getting through. One thing I notice about the bounced messages is that there's no user/sender recorded. Here's a snippet of the log:
    Sep 28 16:45:32 ns postfix/pickup[3275]: 64F57343FF2: uid=501 from=<admin>
    Sep 28 16:45:32 ns postfix/cleanup[6126]: 64F57343FF2: message-id=<[email protected]>
    Sep 28 16:45:32 ns postfix/qmgr[3276]: 64F57343FF2: from=<[email protected]>, size=627, nrcpt=1 (queue active)
    Sep 28 16:45:35 ns postfix/smtp[6130]: 64F57343FF2: to=<[email protected]>, relay=mx.metropolis.ca[65.254.254.57], delay=3, status=sent (250 2.0.0 tylR1X05q2fRSSh0000000 mail accepted for delivery)
    Sep 28 16:45:35 ns postfix/qmgr[3276]: 64F57343FF2: removed
    Sep 28 16:45:54 ns postfix/pickup[3275]: 0A7BB343FFF: uid=501 from=<admin>
    Sep 28 16:45:54 ns postfix/cleanup[6126]: 0A7BB343FFF: message-id=<20070928224554.0A7BB343FFF@mail>
    Sep 28 16:45:54 ns postfix/qmgr[3276]: 0A7BB343FFF: from=<[email protected]>, size=423, nrcpt=1 (queue active)
    Sep 28 16:45:54 ns postfix/smtp[6130]: 0A7BB343FFF: to=<[email protected]>, relay=none, delay=0, status=bounced (mail for gpspolice.net loops back to myself)
    The failure reason given "mail for ... loops back to myself" doesn't seem right, since I haven't changed the DNS settings on this machine.
    You'll notice, the message that is sent has the from= address specified, whereas the other two failed examples don't... I'm not really sure why this is failing all of a sudden. Telus, one of our ISPs, is infamous for quietly making major network policy changes (e.g., blocking port 25 for all outgoing business customers). Any suggestions, or a link to a good SMTP mail server (a la OS X server) tutorial would be appreciated. Thanks.
    ...Rene

    David_x wrote:
    David_x wrote:
    Can you explain why you need any zones in your DNS apart from your own?
    OK, I read a previous post from you which explains your internal setup (mini & xserve), so you are using internal domains for web stuff with your local DNS based on your xserve. I presume your mini is using the xserve for DNS? So although I am not entirely clear about everything that is going on, I'll presume you do need these domains in your xserve...
    Yes, that's all correct. The Xserve does runs DNS, Web and Mail Services, the Mini just runs a couple web sites (on port 8080, fwiw).
    If an external mail server is responsible for a domain which you have in your internal DNS then you have to mirror the public MX records in your local DNS. How MX records work...
    This is what I've done in the DNS Services, I believe...
    For the domain gpspolice.net, your mini will ask your xserve for the MX record. This will resolve to a host name - in the public DNS this is "mail.gpspolice.net". Your mini will then ask your xserve to resolve this host name - in the public DNS this is "209.200.253.29". So ideally, you should have these two records (MX record= mail.gpspolice.net, plus "A" record for mail.gpspolice.net = 209.200.253.29) in your xserve dns. You may get away with using a different MX host name as long as the final IP is the same but better if exactly mirrors public DNS records.
    -david
    I think I've done what you've said, and still certain messages don't get sent out. Basically, any message bound for a .baseloc.net domain doesn't get sent. Here's an example of one message that get's stuck in the queue, along with the console log:
    Message ID: 46A1435234C
    Date: Wed Oct 3 09:57:17
    Size: 11009
    Sender: [email protected]
    Recipient(s) & Status:
    [email protected]:
    temporary failure. Command output: couldn't connect to lmtpd: Connection refused_ 421 4.3.0 deliver: couldn't connect to lmtpd_
    Oct 3 21:00:07 ns postfix/pipe[21091]: 46A1435234C: to=<[email protected]>, relay=cyrus, delay=39770, status=deferred (temporary failure. Command output: couldn't connect to lmtpd: Connection refused_ 421 4.3.0 deliver: couldn't connect to lmtpd_ )
    I have to say, I really appreciate your help. It's helping me understand the proper approach. Anyway, if there's any other information I can provide to help you [help me], please let me know. Thanks again.
    ...Rene

  • How to send e-mail attatchement from command line

    Hi,
    Is it possible to send an e-mail with some attatchment like a .zip file through command line in iPlanet messaging Server 5.2.
    Please let me know the procedure.,
    Thanks
    Rajeev

    I suggest you try blat.exe from www.blat.net
    I use it regularly to send myself statistics and logfiles from servers without any client. Can be automated in a script.
    Eli

  • Removing Mail from a MailBox via Command Line

    Hi,
    I have a mailBox with > 10,000 (Mailing List Bounce).
    I'd like to be able to delete all the mail from the command line.
    Is that possible?
    Thanks,

    Hi BriGy,
    Base on my search, if you want to remove these service account permission, you need to remove from organizational level, not mailbox level.
    Please refer to the following thread, it may give you some hints:
    Deny permissions for Domain Admins on mailboxes
    Best regards,
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Niko Cheng
    TechNet Community Support

  • Powershell script sends e-mail in ISE but not from powershell command line

    I have created a script that generates a report of all users who do not have photos in Active Directory. The script runs and sends an e-mail to a distribution list. It runs fine in ISE, but I cannot run it from command line or as a scheduled task. Any suggestions
    what I am doing wrong?
    #Starts Powershell Snap-In
    Start-Transcript -path c:\Scripts\StaffWithoutPhotos.txt
    add-pssnapin Microsoft.Exchange.Management.PowerShell.E2010 -erroraction silentlyContinue
    $mailboxes = $null
    $mailboxes = @(Get-Mailbox -OrganizationalUnit "Staff User Accounts" -ResultSize Unlimited | Where {$_.HasPicture -eq $False})
    Write-Host $mailboxes
    $report = @()
    foreach ($mailbox in $mailboxes)
    $mbObj = New-Object PSObject
        $mbObj | Add-Member -MemberType NoteProperty -Name "Display Name" -Value $mailbox.DisplayName
        $report += $mbObj
    Write-Host "Diagnostic Output"
    Write-Host "Before Mailbox value check"
    Write-Host $report
    Write-Host "After Mailbox Value check"
    if ($mailboxes -ne $null)
        Write-Host $report
        #Send the report generated to the e-mail list specified above
        $style = "<style>BODY{font-family: Arial; font-size: 10pt;}"
        $style = $style + "TABLE{border: 1px solid black; border-collapse: collapse;}"
        $style = $style + "TH{border: 1px solid black; background: #dddddd; padding: 5px; }"
        $style = $style + "TD{border: 1px solid black; padding: 5px; }"
        $style = $style + "</style>"
        #Start-Sleep -Seconds 5
        $smtpserver = "MAIL.contoso.com"
        $msg = new-object Net.Mail.MailMessage
        $smtp = new-object Net.Mail.SmtpClient($smtpServer)
        $msg.From = "[email protected]"
        $msg.To.Add("[email protected]")
        #$msg.To.Add("[email protected]") #Used for testing
        $msg.Subject = "Staff without Photos report"
        $msg.Body = "This report contains the list of users who do not currently have photos."
        $msg.Body += "<p>"
        $msg.Body += "After photos are available for these users please submit a request to have their accounts updated or send an e-mail to <a href='mailto:[email protected]?Subject=Staff%20Photo%20Updates' target='_top'> [email protected]
    </a> with <b>Staff Photo Updates</b> in the subject."
        $msg.Body += "<p>"
        $msg.Body += "This report runs on Fridays and will only send a message if we have Staff without Photos. For more information please contact your systems administrator."
        $msg.Body += "<p>"
        $msg.Body += $Report | ConvertTo-Html -Head $Style
        $msg.IsBodyHTML = $true
        $smtp.Send($msg)
    Stop-Transcript

    So after researching further and not receiving any more replies I decided to rewrite the script and attempt to use the send-mailmessage function. I have been unable to determine the reason for the original not script not working. We use a very similar script
    to my original code which works to generate a report and e-mail that report as an attachment and it works without any problems.
    After re-writing the script and using the send-mailmessage function I was able to get this report to work as expected. This has now been set up as a scheduled task to run on a server once a week. Here is the final code:
    Start-Transcript -path c:\Scripts\StaffWithoutPhotos.txt
    #Starts Powershell Snap-In
    add-pssnapin Microsoft.Exchange.Management.PowerShell.E2010 -erroraction silentlyContinue
    $mailboxes = $null
    $mailboxes = @(Get-Mailbox -OrganizationalUnit "contoso Staff User Accounts" -ResultSize Unlimited | Where {$_.HasPicture -eq $False})
    Write-Host $mailboxes
    $report = @()
    foreach ($mailbox in $mailboxes)
    $mbObj = New-Object PSObject
        $mbObj | Add-Member -MemberType NoteProperty -Name "Display Name" -Value $mailbox.DisplayName
        $report += $mbObj
    Write-Host "Diagnostic Output"
    Write-Host "Before Mailbox value check"
    Write-Host $report
    Write-Host "After Mailbox Value check"
    if ($mailboxes -ne $null)
        Write-Host $report
        #Send the report generated to the e-mail list specified above
        $style = "<style>BODY{font-family: Arial; font-size: 10pt;}"
        $style = $style + "TABLE{border: 1px solid black; border-collapse: collapse;}"
        $style = $style + "TH{border: 1px solid black; background: #dddddd; padding: 5px; }"
        $style = $style + "TD{border: 1px solid black; padding: 5px; }"
        $style = $style + "</style>"
        $smtpserver = "MAIL.contoso.com"
        $smtpFrom = "[email protected]"
        $smtpTo = "[email protected]
        $messageSubject = "Staff without Photos report"
        $Body = "This report contains the list of users who do not currently have photos."
        $Body += "<p>"
        $Body += "After photos are available for these users please submit a request to the Help Desk to have their accounts updated or send an e-mail to <a href='mailto:[email protected]?Subject=Staff%20Photo%20Updates' target='_top'> [email protected]
    </a> with <b><u>Staff Photo Updates</b></u> in the subject."
        $Body += "<p>"
        $Body += "This report runs on Fridays and will only send a message if we have Staff without Photos. For more information please contact your systems administrator."
        $Body += "<p>"
        $Body += $Report | ConvertTo-Html -Head $Style
        #Send the report
        send-mailmessage -from "$smtpFrom" -to "$smtpTo" -subject "$messageSubject" -body "$Body" -smtpServer "$smtpserver" -BodyAsHtml
    Stop-Transcript

  • Command line for replication setup for DS 4.16

    I am using Directory Server 4.16. I see example using command line for replication configuration in DS 5.0. Since 5.0 is quite different with 4.16. So my question is how to use command line to set up a Supplier in DS 4.16?
    I know we can use ldapmodify to do some change. I see an ldapreplica entry. I can setup supplier id and password there. It seems only change that entry is not enough. Where to setup the setup for "changedatabase", "replication schedule", "initial consumer later" something we do at the console screen?
    Your help is greatly appreciated.
    Iris

    Hi Iris
    Steps involved in Setting up Replication from command line
    Part I: On Consumer Directory Server
    1. Log on to the consumer directory server.
    2. Stop the consumer directory server
    3. Edit the slapd.conf file at <server-root>/slapd-<server-instance>/config so that it includes the following two lines. The lines show the DN of who is allowed to connect for replication and the entry's corresponding password.
    updatedn "uid=<REPLICA USER BIND DN>"
    updatepw {SHA}<SHA ENCRYPTED REPLICA USER PASSWORD>
    4. Edit the dse.ldif file at <server-root>/slapd-<server-instance>/config so that the entry cn=config contains the following two lines. These lines contain the same data as the line above.
    nsslapd-updatedn: uid=<REPLICA USER BIND DN>
    nsslapd-updatepw: <PLAIN TEXT REPLICA USER PASSWORD>
    5. Start the consumer directory server
    Part II: Creating the Replication Agreement
    1. Log on to the master directory server
    2. Stop the master directory server
    3. Edit the slapd.conf file at <server-root>/slapd-<server-instance>/config so that it includes the following two lines. This lines setup the changelog directory and suffix.
    changelogdir <dir path >
    changelogsuffix "cn=changelog"
    4. mkdir <CHANGELOG DIR>
    5. Start the master directory server
    6. Create a file named replica.ldif which contains the following lines. These lines reflect the agreement which will start the replication with the consumer; as such you should make the changes to reflect your environment.
    dn: cn=<CONSUMER FQDN>:<CONSUMER PORT>/o%3D<BASE DN>, cn=ldap://:<SUPPLIER
    PORT>,dc=<1ST ELEMENT OF SUPPLIER FQDN>,dc=<2ND ELEMENT OF SUPPLIER
    FQDN>,...,<TOP LEVEL SUPPLIER FQDN>
    changetype: add
    objectclass: top
    objectclass: LDAPReplica
    replicahost: <CONSUMER FQDN>
    replicaport: 389
    replicanickname: <CONSUMER HOSTNAME>
    cn: <CONSUMER FQDN>:<CONSUMER PORT>/o%3D<BASE DN>
    replicaroot: o=<BASE DN>
    replicabinddn: uid=<REPLICA USER BIND DN>
    replicacredentials: <REPLICA USER PASSWORD>
    replicausessl: 0
    7. Run ldapmodify with the proper authorization so that the entry is added correctly.
    8. There is an optional attribute which can be tacked on to the bottom of the above entry. The attribute 'replicabeginorc' will tell the server to immediately start on-line replication; this will initialize the consumer by deleting all the current entries on the consumer one at a time and then adding all the entries from the master one at a time. If this is something you want to do, do an ldapmodify adding this attribute to the entry you just created in step 8.
    for example
    Create a file called beginreplica.ldif like;
    dn: cn=xymox.mcom.com:389/o%3Dinternet, cn=ldap://:389,dc=fts,dc=mcom,dc=com
    changetype: modify
    add: replicabeginorc:
    replicabeginorc: start
    then run;
    ldapmodify -h fts -p 389 -D "cn=Directory Manager" -w netscape -f beginreplica.ldif
    Hope this helps
    Roy

  • How to see via command line blocked mails

    Im having a problem...i have a C100 Ironport appliance and i want to know via command line, how to grep and see mails that never went delivered.
    For example...i know that someone, like [email protected] send to my exchange server an email...but in exchange never entered. So i assume that it was filtered by Ironport.
    I go to the command line, use grep and 13 and search for [email protected] and i see something like this
    Wed Apr 18 14:17:54 2007 Info: MID 3977209 ICID 8813638 From: <pedro>
    Wed Apr 18 14:18:44 2007 Info: MID 3977209 ready 3019672 bytes from <pedro>
    I see that 2 mails came from pedro....so i want to see what happened to them...they were bounced? rejected? Delivered?
    I dont have any email in the local quarantine... and i want to know how to track what happened to those emails that never entered to my exchange server.
    Is there any command?
    Than you!

    Wanted to add that you can shortcut the "grep" process by putting everything on one line.
    grep -i "Mid 3977209" mail_logs
    grep -i "ICID 8813638" mail_logs
    grep -i "From: " mail_logs
    basically
    grep -i "pattern" mail_logs
    -i ===> ignore case
    Im having a problem...i have a C100 Ironport appliance and i want to know via command line, how to grep and see mails that never went delivered.
    For example...i know that someone, like [email protected] send to my exchange server an email...but in exchange never entered. So i assume that it was filtered by Ironport.
    I go to the command line, use grep and 13 and search for [email protected] and i see something like this
    Wed Apr 18 14:17:54 2007 Info: MID 3977209 ICID 8813638 From:
    Wed Apr 18 14:18:44 2007 Info: MID 3977209 ready 3019672 bytes from
    I see that 2 mails came from pedro....so i want to see what happened to them...they were bounced? rejected? Delivered?
    I dont have any email in the local quarantine... and i want to know how to track what happened to those emails that never entered to my exchange server.
    Is there any command?
    Than you!

  • Can apple mail be used from the command line?

    Can the Mac Mail application be used from the OSX command line?  Has anyone installed
    a command-line, Linux-like mail application to run on OSX?

    I don't know about the Mail app, but have you tried installing and configuring postfix? Here is a link to a blog with some details for a postfix solution.

  • Setup error 530 invalid command line!!!!??

    hi guys,
    i have the following error in my addon installation process
    <i>"Setup error 530 invalid command line"</i>
    all my files .ard and setup.exe was generated correctly but whene i try to install my addon
    image capture
    http://aycu19.webshots.com/image/13218/2000674717812036508_rs.jpg

    Hi Manza,
    What are you using to create your setup?
    Have you tried the B1DE package? It contains 2 wizards to automatically create the setup of your addon together with the .ard file.
    You can try to use it at least to use it as a sample of what is needed for your setup.
    Are you setting something in the .ard Command Line arguments for installing/deinstalling your addon? Maybe the error is talking about it...
    Regards
    Trinidad.

Maybe you are looking for