SMTP vs. external mail service

I need to use SMTP on our webserver to send mail via a web form. However, we use an external 3rd party mail service and when the webserver passes the message for a @mydom.tld user to SMTP (Postfix), it gets passed on to dovecot and dumped in a local mailbox on the server (if the user name corresponds i.e. [email protected] => user account 'miles'). If the usernames don't match, _www gets the bounce message in its local mailbox. IMAP and POP are disabled.
DNS MX records point to the external service (with servers at priority 0, 10 and 20).
What I want to happen is for the SMTP server to send the message to the MX servers (the third party service) instead of trying to deliver it itself.
Here's what the SMTP logs say:
Feb 27 13:55:08 obelix postfix/pickup[52526]: E077C5FD068A: uid=70 from=<_www>
Feb 27 13:55:08 obelix postfix/cleanup[52547]: E077C5FD068A: message-id=<[email protected]>
Feb 27 13:55:08 obelix postfix/qmgr[52527]: E077C5FD068A: from=<[email protected]>, size=581, nrcpt=1 (queue active)
Feb 27 13:55:08 obelix postfix/local[52549]: error: od[getpwnam_ext]: No record for user saskatoon
Feb 27 13:55:08 obelix postfix/pipe[52550]: E077C5FD068A: to=<[email protected]>, relay=dovecot, delay=0.04, delays=0.02/0.01/0/0.02, dsn=5.1.1, status=bounced (user unknown)
Feb 27 13:55:08 obelix postfix/cleanup[52547]: E87B85FD068C: message-id=<[email protected]>
Feb 27 13:55:08 obelix postfix/bounce[52552]: E077C5FD068A: sender non-delivery notification: E87B85FD068C
Feb 27 13:55:08 obelix postfix/qmgr[52527]: E87B85FD068C: from=<>, size=2252, nrcpt=1 (queue active)
Feb 27 13:55:08 obelix postfix/qmgr[52527]: E077C5FD068A: removed
Feb 27 13:55:08 obelix postfix/local[52549]: od[getpwnam_ext]: no attribute dsAttrTypeStandard:MailAttribute in record for user _www
Feb 27 13:55:08 obelix postfix/pipe[52550]: E87B85FD068C: to=<[email protected]>, relay=dovecot, delay=0.01, delays=0/0/0/0.01, dsn=2.0.0, status=sent (delivered via dovecot service)
Feb 27 13:55:08 obelix postfix/qmgr[52527]: E87B85FD068C: removed
From postconf -n:
biff = no
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
enable_server_options = yes
header_checks = pcre:/etc/postfix/custom_header_checks
html_directory = /usr/share/doc/postfix/html
inet_interfaces = all
mail_owner = _postfix
mailbox_size_limit = 0
mailbox_transport = dovecot
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
maps_rbl_domains =
message_size_limit = 10485760
mydestination = $myhostname, localhost.$mydomain, localhost, mydom.tld, $mydomain
mydomain = obelix.mydom.tld
mydomain_fallback = localhost
myhostname = obelix.mydom.tld
mynetworks = 127.0.0.0/8,10.198.186.90
newaliases_path = /usr/bin/newaliases
queue_directory = /private/var/spool/postfix
readme_directory = /usr/share/doc/postfix
recipient_delimiter = +
relayhost =
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = _postdrop
smtp_sasl_password_maps =
smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated permit
smtpd_enforce_tls = no
smtpd_helo_required = yes
smtpd_helo_restrictions = reject_invalid_helo_hostname reject_non_fqdn_helo_hostname
smtpd_pw_server_security_options = cram-md5
smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks  reject_unauth_destination check_policy_service unix:private/policy permit
smtpd_sasl_auth_enable = yes
smtpd_tls_CAfile = /etc/certificates/*.mydom.tld.XXXXXXXXX.chain.pem
smtpd_tls_cert_file = /etc/certificates/*.mydom.tld.XXXXXXXXX.cert.pem
smtpd_tls_exclude_ciphers = SSLv2, aNULL, ADH, eNULL
smtpd_tls_key_file = /etc/certificates/*.mydom.tld.XXXXXXXXX.key.pem
smtpd_use_pw_server = yes
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
virtual_alias_maps =
Any and all help appreciated.
Thanks,
Miles

Well, the big question is whether or not this server should accept mail for your domain, mydom.tld.
If it should, then this is appropriate - it sees a message for a domain that it's responsible for.
If, on the other hand, this server isn't responsible for your domain's mail then tell it so.
Right now you've told it that it SHOULD accept mail for mydom.tld:
mydestination = $myhostname, localhost.$mydomain, localhost, mydom.tld, $mydomain
So any mail addressed to any user @mydom.tld is going to get delivered locally. If that's not what you want, remove mydom.tld from mydestination and the message will follow the normal SMTP/MX rules.

Similar Messages

  • Problems in sent of external MAIL with the service SAPCONNECT

    Hello all
    We configured the service SAPCONNECT in my system quality  for sending the mail and this is not problem, I executed  tests with direction of mail internal and the are sent without any problem.
    But the problems starts is when I sent the mail external and the message that displays is
    Status received for this document:
         System Messages
    Sent on:
         25.01.2011 11:29:07
    Sent by:
         Marco Gerardo Ceballos V.
    Status for Recipient xxxxxxx@aaaaa:
         No delivery to xxxxxx@aaaaa, as recipient unknown
    The request of area of development is send the external mails.
    I review the configuration in the transaction SCOT and I not see a problem.
    ATTE
    Gerardo Ceballos

    Hi,
    Please check the parameter icm/server_port_1, if this parameter is not set, add in TX RZ10 with the value:
    PROT=SMTP,PORT=25
    Restart the instance, then create a service user with the S_A.SCON profile.
    In the SICF, open the SAPCONNECT service and check the configuration:
    Host data: profile parameter = 0 // host configuration= :
    Logon Data: Add the service user that you create
    Handler List: CL_SMTP_EXT_SAPCONNECT
    Save and active
    In the SCOT add the domain in menu settings and add the mailhost and port in the SMTP node, Click the button SET in the internet option and add a * in field address area.
    Go to SMICM --> Go to --> Services and check that the port that you add in the parameter icm/server_port_1 is active
    Go to SBWP and send the message.
    Good Luck
    AG

  • Mail service rejecting all external mail

    I am running Snow Leopard Server 10.6.2 and when I began setting up the mail services I was able to get internal mail working just fine, however, any messages sent from external sources are rejected. The sender receives a permanent delivery failure message: The error that the other server returned was: 550 550 5.1.1 <emailaddress>: Recipient address rejected: undeliverable address: User unknown (state 14). I should note that I am using DynDNS's Mailhop Relay service, but that appears to be working normally as I can see the connections from the mailhop servers in my SMTP log.
    I have tried disabling greylisting as posted in other threads to no effect. I have disabled filtering of any kind, still to no effect. At this point, I'm not sure what else to try, as at this point I'm in a little over my head.
    Any assistance would be most appreciated, thanks.

    I finally figured it out. My SMTP security settings were being mis-reported by Server Admin. The server was requiring authentication from approved mail servers when it wasn't supposed to.

  • Send E-mail from Oracle (9.2.0.1) : SMTP transient error: 421 Service not a

    I have used Oracle 9i server (9.2.0.1 version) on Windows XP machine(with SP2).I want to send Email from PL/SQL procedure.
    My Question is what sort of configuration needed to perform this activity?
    I have installed IIS (Internet Information Service)
    in my machine, then configure my SMTP mail server
    with a valid email id and password given TCP port 465.
    Later I came to know that to send Email from PL/SQL I have to install Oracle JServer Code. Follow three steps. the steps are
    1. Execute the script as sys "$ORACLE_HOME\javavm\install\initjvm.sql"
    2. Execute the loadjava classfile as
    $ORACLE_HOME\plsql\jlib>loadjava -f -v -r -u sys/**** plsql.jar
    3. Execute the script as sys "$ORACLE_HOME\rdbms\admin\initplsj.sql"
    I sucessfully executed the first step, but for the second step iam not able to locate the plsql.jar file in the specified path.
    So Please tell me if there is any other method to perform this task
    My code is as follows.
    CREATE OR REPLACE PROCEDURE SEND_MAIL (
                                  msg_to varchar2,
                                  msg_subject varchar2,
                                  msg_text varchar2
                                  IS
                                  c utl_smtp.connection;
                                  rc integer;
                                  msg_from varchar2(50) := '[email protected]';
                                  mailhost VARCHAR2(30) := 'mail.google.com';
                             BEGIN
                                  c := utl_smtp.open_connection(mailhost, 465);
                                  utl_smtp.helo(c, mailhost);
                                  utl_smtp.mail(c, msg_from);
                                  utl_smtp.rcpt(c, msg_to);
                                  dbms_output.put_line(' Start Sending data');
                                  utl_smtp.data(c,'From: Oracle Database' || utl_tcp.crlf ||
                                  'To: ' || msg_to || utl_tcp.crlf ||
                                  'Subject: ' || msg_subject ||
                                  utl_tcp.crlf || msg_text);
                                  dbms_output.put_line(' Finish Sending data');
                                  utl_smtp.quit(c);
              EXCEPTION
                   WHEN UTL_SMTP.INVALID_OPERATION THEN
    dbms_output.put_line(' Invalid Operation in Mail attempt using UTL_SMTP.');
                   WHEN UTL_SMTP.TRANSIENT_ERROR THEN
    dbms_output.put_line(' Temporary e-mail issue - try again');
    WHEN UTL_SMTP.PERMANENT_ERROR THEN
    dbms_output.put_line(' Permanent Error Encountered.');
    END;
    Procedure Created.
    SQL> execute prc_send_mail('[email protected]','[email protected]','Good Morning.');
    BEGIN prc_send_mail('[email protected]','[email protected]','Good Morning.'); END;
    ERROR at line 1:
    ORA-29278: SMTP transient error: 421 Service not available
    ORA-06512: at "SYS.UTL_SMTP", line 17
    ORA-06512: at "SYS.UTL_SMTP", line 96
    ORA-06512: at "SYS.UTL_SMTP", line 374
    ORA-06512: at "SCOTT.PRC_SEND_MAIL", line 19
    ORA-29278: SMTP transient error: 421 Service not available
    ORA-06512: at line 1.
    Please tell me how to solve this problem.
    Thank You.

    1) Why did you install an SMTP server locally and then tell your code to try to use the server mail.google.com?
    2) The error you're getting is from mail.google.com indicating that Google isn't running an open SMTP server there. I would be very surprised if Google were running a publicly available SMTP server anywhere since that would be an invitation for spammers.
    Justin

  • Error in the SMTP log of the mail service regarding "master.lock"

    I am getting the following error in the SMTP log of the mail service, Anybody might have any suggestions:
    postfix/master[87670]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied.
    The permissions of the master.lock file are as follows:
    -rw-------  1 _postfix  mail  33 Jul  7 10:25 master.lock
    The Mail service stops after a few minutes from starting it
    I appreciate your feedback

    I found the problem.. the executable job was referring to a none existing batch file..
    I have refreshed the database from production some time ago and the jobs I have setup are referring to production scripts and paths (which we didnt have on dev)..
    This is now resolved.
    Thanks

  • SMTP error from remote mail service

    I am receiving a error that states"SMTP error from remote mail service" This is my work e-mail that is a out look e-mail service--but was put on my laptop in mozilla. If I test send e-mails to my gmail, aol and the work e-mail the work e-mail goes through (on the mozilla) but I get the error report for the gmail and aol test.

    ''Matt [[#answer-672468|said]]''
    <blockquote>
    what is the complete error message please.
    </blockquote>
    Hi Matt--thank you for reaching out to assist--here is the full error message I receive when I attempt to send emails--
    SMTP error from remote mail server after end of data:
    host p3nlsmtpcp-v01.prod.phx3.gdg [72.167.191.78]:
    552 5.2.0 bT641p03m3RZ6FL01 :: CPANEL :: Message rejected for spam or virus content ::
    Please include this entire message when contacting support ::
    v=2.1 cv=Yecz5mhf c=1 sm=1 tr=0 p=dXr4a0FlAAAA:8 a=9P+wmFvZGoNcfX5LD2dIAQ==:117 a=9P+wmFvZGoNcfX5LD2dIAQ==:17 a=TZb1taSUAAAA:8 a=xSRs65CQCjkA:10 a=IkcTkHD0fZMA:10 a=o1OHuDzbAAAA:8 a=YNv0rlydsVwA:10 a=AK46IGkTethYI5b8t1AA:9 a=QEXdDO2ut3YA:10 a=RBqHpAr1aNgA:10 a=SZlYXZE0WA8A:10 a=POQKUN4lQn8A:10 a=5LQJebhDX5EA:10 a=lWHhIcKi20EA:10 a=AP_QpuyW5RgA:10 a=_ZmE1jEfA50A:10 a=fVc70mvjwYYA:10 a=BfRt8DTvoOQA:10 ::
    100.00

  • SMTP  - mail service

    Hi,
    i configured the SMTP for mail service.
    I can able to send mail to our domain   ( for ex: abc.com )  - default domain
    i gave SMTP Connection as  :  mail.abc.com 
    the above scenario --- will work for me if i send mail to our default domain. but i am not able to send to yahoo, gmail.
    Please help me ...
    --- Lee

    Hi Lee,
    In the SCOT, SMTP node you need to have the SMTP server address. if you've given the sap server IP address, then revert it back.
    What Juan has already mentioned,
    "you need to make sure that the IP address of the SAP System is populated on the SMTP relay agent for the mails to leave the domain." that means you've to tell your SMTP mail admin guys to add the SAP server IP address in the relay agent.
    Regards,
    Debasis.

  • Mail Service With Internal vs External Domain Question

    I have a SLS setup with a private domain ex: server.acmewidgets.private
    The local dns resolves correctly
    I have a static IP for this server and I would like it to handle the email for my domain which is ex: acmewidgets.com
    (Currently acmewidgets.com has been having it's website and email handled by an external source)
    Do I need to reinstall the SLS with the domain server.acmewidgets.com to get the email working correctly? Or do I simply just point the MX Records to the static IP of server.acmewidgets.private?
    If I do not need to reinstall, what needs to be done to create the flow of email in and out of the SLS?

    No need to re-install Snow Leopard Server, you will need however to configure a few things.
    First up you will need to configure the Mail service to accept mail for this external domain as at the moment it will be configured to only accept mail for your local domain.
    In *Server Admin*, go to the Mail section and click on Advanced, now click on Hosting. In the hosting section you can add as many domains as you like for the mail server to accept mail for, the simplest way is to add the domains as virtual hosts.
    Point your external MX records to the address for the server so that mail will be directed to your server. If your server is on a fixed external IP address then all done.
    If your server is behind a firewall and on a private IP address you will need to forward port 25 on your firewall to the Snow Leopard Server. If you are also running DNS you should create a new Zone for your external domain with MX records that point to your Snow Leopard Server as clients will need to know that your server is the final delivery destination for that domain. If your server really is on a live fixed external IP address this step is not necessary.

  • Set up Mail service for SMTP only.

    I wish to set up the Mail service to act as an smtp server only.
    I have FileMaker Server running on this server, on which I am using a plug-in to send mail to my ISP's smtp server. But I am outgrowing my daily sending limits through my ISP (100/day), and would like to run my own smtp server instead.
    I have turned on the smtp mail service and it is running, but I'm not sure what credentials I should use to authenticate when connecting to this smtp server...

    I have turned on the smtp mail service and it is running, but I'm not sure what credentials I should use to authenticate when connecting to this smtp server...
    Why use any?
    If the Filemaker Server is inside your network and this server is just acting as a relay for outgoing mail then you don't need authentication at all. Just tell postfix to trust local networks ("Relay mail from the following networks" in Server Admin and add your internal addresses) and you're set.
    Since the server won't be accepting mail from outside clients or servers that's all you need to do. There's no need to authenticate since the connection is coming from a trusted network.
    If you still do want to use authentication then just provide any username/password combo that is valid for this server. You could even create a dummy account just for this purpose if you prefer.

  • Yahoo mail service(SMTP & POP3) to browser

    I think Yahoo mail service(SMTP & POP3) is open only to browser. Is it possible to interact with Yahoo mail service thru URL Programming means thru URL programming to send retrive mail and attachment ? If so then how ? Plz help! It's urgent.
    Thanx & Regards,
    Chanchal

    Is it possible? Sure, it's possible, it's only software after all.
    Has someone already done it? Not that I know of.
    But then you already know that because you've already read
    this FAQ entry, right?
    http://java.sun.com/products/javamail/FAQ.html#webmail

  • Mail Error: ORA-29278: SMTP transient error: 421 Service not available

    I write process to send mail, it is running ok, but I have error ORA-29278: SMTP transient error: 421 Service not available.
    SMTP Host Address : localhost
    SMTP Host Port : 25
    When I connect to database as SYS and run : exec apex_mail.push_queue result is :
    Pushing email: 1225814842675154
    Pushed email: 1225814842675154
    PL/SQL procedure successfully completed.
    Please explain me what is happened!

    Hi;
    What is DB version?
    Please see:
    From Master Note For PL/SQL UTL_SMTP and UTL_MAIL Packages [ID 1137673.1] check Note 604763.1 "ORA-29278: SMTP transient error: 421 Service not available" When Using UTL_SMTP to Send Email.
    Regard
    Helios

  • Mac mail service isnt listening on default ports at all other than SMTP

    Mac mail service isnt listening on default ports at all other than SMTP.
    I can port scan locally and here is what's listening
    Port Scan has started…
    Port Scanning host: <IPADDRESS>
         Open TCP Port:     25             smtp
         Open TCP Port:     53             domain
         Open TCP Port:     80             http
         Open TCP Port:     88             kerberos
         Open TCP Port:     106            3com-tsmux
         Open TCP Port:     311            asip-webadmin
         Open TCP Port:     389            ldap
         Open TCP Port:     443            https
         Open TCP Port:     464            kpasswd
         Open TCP Port:     587            submission
         Open TCP Port:     625            dec_dlm
         Open TCP Port:     749            kerberos-adm
    Port Scan has completed…
    Mail service is on.

    first place to start is always /var/log/system.log
    stop/start mail service while watching that log.
    You will probably catch some dovecot/imap lines that will yield clues.
    Post results.

  • Mail service on, SMTP on, but clients can't connect -- please help a novice

    Hi all,
    We use 10.4 Server on a G5 Xserve. A few days ago we had a problem with our server being used for spam. That was fixed quickly enough, but the problem is: while being fixed, the mail queue accumulated more and more mail, and it wasn't going out. The "retry" button didn't work. Repairing the database didn't work.
    To make a long story shorter, after reading different things here and on the web, I managed to delete all the messages in the queue. All the users are still there. But now, when I turn the mail service back on, everyone gets a "can't connect" error.
    I've used the terminal before, but I've always been following directions; I don't know what to type or why. But if someone with patience can help, I can follow directions, and would really appreciate the help. Right now I'm dead in the water.

    OK, I've already admitted that I know nothing about this, so I'm sure this will give some people some laughs. That's OK, so the only thing I've changed was the name of the company. I have more peace of mind knowing I'm not showing who's got problems. The other thing is that I don't know when my part of the history begins. Maybe it's all me, but I don't remember doing anything even remotely close to changing IPs. So here it is:
    1 telnet mail.abcde.com 110
    2 telnet mail.abcde.com 110
    3 telnet mail.abcde.com 110
    4 sudo /etc/squirrelmail/config/conf.pl
    5 grep swupd /etc/swupd/com.apple.server.swupdate.plist > ~/Desktop/
    6 update_list.txt
    7 grep swupd /etc/swupd/com.apple.server.swupdate.plist > ~/Desktop/
    8 update_list.txt
    9 grep swupd /etc/swupd/com.apple.server.swupdate.plist > ~/Desktop/update_list.txt
    10 softwareupdate
    11 man changeip
    12 changeip
    13 exit
    14 changeip -checkhostname
    15 sudo changeip
    16 changeip -checkhostname
    17 sudo changeip -checkhostname
    18 man changeip
    19 sudo changeip -gethostname
    20 sudo changeip -gethostname
    21 sudo changeip
    22 /usr/sbin/changeip /LDAPv3/127.0.0.1 10.10.10.3 10.10.10.3 mail.abcde.org mail.abcde.org
    23 sudo changeip -checkhostname
    24 sudo /usr/sbin/changeip /LDAPv3/127.0.0.1 10.10.10.3 10.10.10.3 mail.abcde.org mail.abcde.org
    25 changeip -checkhostname
    26 sudo changeip -checkhostname
    27 sudo rm -rf /usr/share/swupd/html/061-4590/
    28 sudo rm -rf /usr/share/swupd/html/061-4589/
    29 sudo rm -rf /usr/share/swupd/html/061-4589
    30 sudo rm -rf /usr/share/swupd/html/061-4590/
    31 sudo rm -rf /usr/share/swupd/html/061-4590/
    32 sudo rm -rf /usr/share/swupd/html/061-2089/
    33 grep swupd /etc/swupd/com.apple.server.swupdate.plist > ~/Desktop/update_list.txt
    34 sudo mkdir /usr/sieve
    35 sudo mkdir /usr/sieve
    36 sudo pico /etc/services
    37 netstat -an | grep 2000
    38 telnet localhost 2000
    39 sudo mkdir -p /usr/sieve
    40 sudo mkdir -p /usr/sieve
    41 sudo chown cyrusimap /usr/sieve
    42 sudo chgrp wheel /usr/sieve
    43 cd
    44 pwd
    45 ls
    46 cd /usr
    47 ls
    48 ls -l
    49 exit
    50 sudo pico /etc/services
    51 telnet localhost 2000
    52 netstat
    53 netstat -an | grep 2000
    54 exit
    55 changeip
    56 sudo changeip
    57 changeip -checkhostname
    58 sudo changeip -checkhostname
    59 exit
    60 sudo ls -al /var/spool/imap/user/diradmin
    61 sudo ls -al /var/spool/imap/user/kbentley
    62 sudo /usr/share/mailman/bin/check_perms -f
    63 su root
    64 su root
    65 su root
    66 su root
    67 su root
    68 fsck -f
    69 fsck
    70 sudo fsck -f
    71 sudo fsck /?
    72 fsck /help
    73 fsck \help
    74 pwd
    75 ..
    76 12345
    77 sudo /System/Library/CoreServices/Finder.app/
    78 sudo /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder
    79 su root
    80 su root
    81 sudo -u cyrusimap
    82 su cyrus
    83 su cyrus
    84 su cyrus
    85 su cyrus
    86 su cyrus
    87 cyrus
    88 sudo cyrus
    89 su cyrus
    90 su cyrus
    91 su cyrus /usr/bin/cyrus/bin/reconstruct -r -f /var/spool/imap/bbills
    92 postfix reload
    93 sudo postfix reload
    94 sudo postfix reload
    95 ls -l /var/spool/imap/user/bbills
    96 history

  • Can't receive from external mail

    I has look through the forum but unable to find a solution to my problem, so I hope someone here can help.
    I just upgrade one of our server from Tiger 10.4.11 to Leopard Server 10.5.5, now we only can send and receive inside our lan, but only can send, can't receive from outside our lan.
    As far as I can tell all our MX, and PTR are fine and we are not in any of the RBL.
    I think the problem might have something to do with NAT, but not sure where to check.
    Here is the postconf output
    xserve:~ root# postconf -n
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    content_filter = smtp-amavis:http://127.0.0.1:10024
    daemon_directory = /usr/libexec/postfix
    debugpeerlevel = 2
    enableserveroptions = yes
    html_directory = no
    inet_interfaces = all
    mail_owner = _postfix
    mailboxsizelimit = 0
    mailbox_transport = cyrus
    mailq_path = /usr/bin/mailq
    manpage_directory = /usr/share/man
    mapsrbldomains =
    messagesizelimit = 10485760
    mydestination = $myhostname,localhost.$mydomain,localhost,douglaspark.school.nz,mail.douglaspar k.school.nz
    mydomain = douglaspark.school.nz
    mydomain_fallback = localhost
    myhostname = mail.douglaspark.school.nz
    mynetworks = 127.0.0.0/8,10.0.1.0/24,202.174.163.117
    newaliases_path = /usr/bin/newaliases
    queue_directory = /private/var/spool/postfix
    readme_directory = /usr/share/doc/postfix
    sample_directory = /usr/share/doc/postfix/examples
    sendmail_path = /usr/sbin/sendmail
    setgid_group = _postdrop
    smtpdclientrestrictions = permit_mynetworks zen.spamhaus.org permit
    smtpdenforcetls = yes
    smtpdpw_server_securityoptions = cram-md5,plain,login
    smtpdrecipientrestrictions = permitsasl_authenticated,permit_mynetworks,reject_unauthdestination,permit
    smtpdsasl_authenable = yes
    smtpdtls_certfile = /etc/certificates/mail.douglaspark.school.nz.crt
    smtpdtls_keyfile = /etc/certificates/mail.douglaspark.school.nz.key
    smtpduse_pwserver = yes
    smtpdusetls = yes
    unknownlocal_recipient_rejectcode = 550
    Here is the Delivery Notification.
    This report relates to a message you sent with the following header fields:
    Message-id: <1222931212.48e4730c39ea4@www.*.net.nz>
    Date: Thu, 02 Oct 2008 20:06:52 +1300 (NZDT)
    From: *@paradise.net.nz
    To: Sochet Ly <***@douglaspark.school.nz>
    Subject: Re: test
    Your message cannot be delivered to the following recipients:
    Recipient address: ****@douglaspark.school.nz
    Reason: Server rejected MAIL FROM address.
    Diagnostic code: smtp;530 5.7.0 Must issue a STARTTLS command first
    Remote system: dns;mail.douglaspark.school.nz
    (TCP|203.97.33.68|59550|202.174.163.117|25)
    Reporting-MTA: dns;smtp5.clear.net.nz (tcp-daemon)
    Original-recipient: rfc822;*@douglaspark.school.nz
    Final-recipient: rfc822;*@douglaspark.school.nz
    Action: failed
    Status: 5.0.0 (Server rejected MAIL FROM address.)
    Remote-MTA: dns;mail.douglaspark.school.nz
    (TCP|203.97.33.68|59550|202.174.163.117|25)
    Diagnostic-code: smtp;530 5.7.0 Must issue a STARTTLS command first
    Thanks in advance.
    <edited by host>

    Hi pterobyte,
    I set logging level to information, and then send myself an email inside our lan, send and receive ok, also sent an email to my external email address, then reply from external mail address here is the mail.log
    Oct 3 12:18:53 xserve postfix/smtpd[37952]: connect from xserve.douglaspark.school.nz[202.174.163.117]
    Oct 3 12:18:54 xserve postfix/smtpd[37952]: 147EC26C229: client=xserve.douglaspark.school.nz[202.174.163.117], sasl_method=CRAM-MD5, sasl_username=sochetly
    Oct 3 12:18:54 xserve postfix/cleanup[37958]: 147EC26C229: message-id=<[email protected]>
    Oct 3 12:18:54 xserve postfix/qmgr[84]: 147EC26C229: from=<*@douglaspark.school.nz>, size=647, nrcpt=1 (queue active)
    Oct 3 12:18:57 xserve postfix/smtpd[37966]: connect from localhost[127.0.0.1]
    Oct 3 12:18:57 xserve postfix/smtpd[37966]: 59AD026C246: client=localhost[127.0.0.1]
    Oct 3 12:18:57 xserve postfix/cleanup[37958]: 59AD026C246: message-id=<096B6230-9CCE-4451-B018-A509BFAD7DBC@**.school.nz>
    Oct 3 12:18:57 xserve postfix/qmgr[84]: 59AD026C246: from=<**@douglaspark.school.nz>, size=1306, nrcpt=1 (queue active)
    Oct 3 12:18:57 xserve postfix/smtpd[37966]: disconnect from localhost[127.0.0.1]
    Oct 3 12:18:57 xserve postfix/smtp[37959]: 147EC26C229: to=<*@douglaspark.school.nz>, relay=127.0.0.1[127.0.0.1]:10024, delay=3.4, delays=0.09/0.17/0.03/3.1, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 59AD026C246)
    Oct 3 12:18:57 xserve postfix/qmgr[84]: 147EC26C229: removed
    Oct 3 12:18:57 xserve postfix/pipe[37969]: 59AD026C246: to=<*@douglaspark.school.nz>, relay=cyrus, delay=0.53, delays=0.01/0.07/0/0.45, dsn=2.0.0, status=sent (delivered via cyrus service)
    Oct 3 12:18:57 xserve postfix/qmgr[84]: 59AD026C246: removed
    Oct 3 12:19:33 xserve postfix/smtpd[37952]: 5DFD426C264: client=xserve.douglaspark.school.nz[202.174.163.117], sasl_method=CRAM-MD5, sasl_username=sochetly
    Oct 3 12:19:33 xserve postfix/cleanup[37958]: 5DFD426C264: message-id=<[email protected]>
    Oct 3 12:19:33 xserve postfix/qmgr[84]: 5DFD426C264: from=<*@douglaspark.school.nz>, size=618, nrcpt=1 (queue active)
    Oct 3 12:19:35 xserve postfix/smtpd[37966]: connect from localhost[127.0.0.1]
    Oct 3 12:19:35 xserve postfix/smtpd[37966]: 84FFE26C28B: client=localhost[127.0.0.1]
    Oct 3 12:19:35 xserve postfix/cleanup[37958]: 84FFE26C28B: message-id=<[email protected]>
    Oct 3 12:19:35 xserve postfix/qmgr[84]: 84FFE26C28B: from=<**@douglaspark.school.nz>, size=1099, nrcpt=1 (queue active)
    Oct 3 12:19:35 xserve postfix/smtpd[37966]: disconnect from localhost[127.0.0.1]
    Oct 3 12:19:35 xserve postfix/smtp[37959]: 5DFD426C264: to=<*@paradise.net.nz>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.3, delays=0.03/0.01/0.04/2.2, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 84FFE26C28B)
    Oct 3 12:19:35 xserve postfix/qmgr[84]: 5DFD426C264: removed
    Oct 3 12:19:36 xserve postfix/smtp[38021]: 84FFE26C28B: to=<**@paradise.net.nz>, relay=mx.paradise.net.nz[203.97.33.212]:25, delay=0.86, delays=0.01/0.02/0.58/0.26, dsn=2.0.0, status=sent (250 ok: Message 551665631 accepted)
    Oct 3 12:19:36 xserve postfix/qmgr[84]: 84FFE26C28B: removed
    Oct 3 12:20:14 xserve postfix/smtpd[38034]: connect from smtp5.clear.net.nz[203.97.33.68]
    Oct 3 12:20:17 xserve postfix/smtpd[38034]: disconnect from smtp5.clear.net.nz[203.97.33.68]
    I can see it connected from my ISP server, but then in disconnect straight away.
    and here is some recent mailaccess.log
    ct 3 12:14:04 xserve pop3s[37852]: starttls: TLSv1 with cipher AES128-SHA (128/128 bits new) no authentication
    Oct 3 12:14:04 xserve pop3s[37852]: login: [10.0.1.83] supportstaff APOP+TLS User logged in
    Oct 3 12:18:27 xserve imaps[37939]: TLS server engine: cannot load CA data
    Oct 3 12:18:27 xserve imaps[37939]: starttls: TLSv1 with cipher AES128-SHA (128/128 bits new) no authentication
    Oct 3 12:18:29 xserve imaps[37939]: login: xserve.douglaspark.school.nz [202.174.163.117] sochetly CRAM-MD5+TLS User logged in
    Oct 3 12:18:29 xserve imaps[37943]: TLS server engine: cannot load CA data
    Oct 3 12:18:29 xserve imaps[37943]: starttls: TLSv1 with cipher AES128-SHA (128/128 bits reused) no authentication
    Oct 3 12:18:29 xserve imaps[37943]: login: xserve.douglaspark.school.nz [202.174.163.117] sochetly CRAM-MD5+TLS User logged in
    Oct 3 12:18:29 xserve imaps[37943]: skiplist: recovered /var/imap/user/s/sochetly.seen (2 records, 2848 bytes) in 0 seconds
    Oct 3 12:18:29 xserve imaps[37944]: TLS server engine: cannot load CA data
    Oct 3 12:18:29 xserve imaps[37944]: starttls: TLSv1 with cipher AES128-SHA (128/128 bits reused) no authentication
    Oct 3 12:18:29 xserve imaps[37944]: login: xserve.douglaspark.school.nz [202.174.163.117] sochetly CRAM-MD5+TLS User logged in
    Oct 3 12:18:32 xserve imaps[37939]: starttls: TLSv1 with cipher AES128-SHA (128/128 bits reused) no authentication
    Oct 3 12:18:32 xserve imaps[37939]: login: xserve.douglaspark.school.nz [202.174.163.117] sochetly CRAM-MD5+TLS User logged in
    Oct 3 12:18:32 xserve imaps[37946]: TLS server engine: cannot load CA data
    Oct 3 12:18:32 xserve imaps[37946]: starttls: TLSv1 with cipher AES128-SHA (128/128 bits reused) no authentication
    Oct 3 12:18:32 xserve imaps[37946]: login: xserve.douglaspark.school.nz [202.174.163.117] sochetly CRAM-MD5+TLS User logged in
    Oct 3 12:18:37 xserve imaps[37946]: Expunged 10 messages from user.sochetly.Sent Messages
    Oct 3 12:18:57 xserve lmtpunix[37971]: Delivered: <[email protected]> to mailbox: user.sochetly
    Oct 3 12:19:03 xserve imaps[37943]: Expunged 9 messages from user.sochetly
    Oct 3 12:19:04 xserve pop3s[37977]: TLS server engine: cannot load CA data
    Oct 3 12:19:04 xserve pop3s[37977]: starttls: TLSv1 with cipher AES128-SHA (128/128 bits new) no authentication
    Oct 3 12:19:04 xserve pop3s[37977]: login: [10.0.1.83] supportstaff APOP+TLS User logged in
    Oct 3 12:24:04 xserve pop3s[38238]: TLS server engine: cannot load CA data
    Oct 3 12:24:04 xserve pop3s[38238]: starttls: TLSv1 with cipher AES128-SHA (128/128 bits new) no authentication
    Oct 3 12:24:04 xserve pop3s[38238]: login: [10.0.1.83] supportstaff APOP+TLS User logged in
    Can you tell me what is this message mean.
    TLS server engine: cannot load CA data.
    Thanks.
    Jet
    <edited by host>

  • "530 5.7.1 Client was not authenticated" Error with mail service

    Hi,
    I have some problem with Mail service with the Webspaces application. I have configured the Service (with MS Exchange server) with WebSpaces Application with the required IMAP, SMTP, External Application and LDAP Settings correctly. I opened the Mail Page and Logged in with the
    user credentials. I am able to see the incoming mails , But when I try to send a mail I am getting the following exception. For some reason, SMTP send is failing. I did the same IMAP and SMTP settings in MS Outlook and successfully sent the mail. what could be the problem? Please repond.
    oracle.webcenter.collab.mail.MailException: Failed to send the message with subject "Test". Further information: 530 5.7.1 Client was not authenticated
         at oracle.webcenter.collab.mail.MailSession.sendMessage(MailSession.java:864)
         at oracle.webcenter.collab.mail.view.backing.MessageHandler.sendMessage(MessageHandler.java:528)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1245)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:87)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:298)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:91)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:87)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:87)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:298)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:91)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:81)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:673)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:273)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:165)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.portlet.client.adapter.adf.ADFPortletFilter.doFilter(ADFPortletFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterShellPageRedirectionFilter.doFilter(WebCenterShellPageRedirectionFilter.java:210)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterShellFilter.doFilter(WebCenterShellFilter.java:603)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.view.page.editor.webapp.WebCenterComposerFilter.doFilter(WebCenterComposerFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:65)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:54)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.wls.JpsWlsFilter$1.run(JpsWlsFilter.java:96)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.wls.util.JpsWlsUtil.runJaasMode(JpsWlsUtil.java:146)
         at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:140)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterLocaleWrapperFilter.processFilters(WebCenterLocaleWrapperFilter.java:256)
         at oracle.webcenter.webcenterapp.internal.view.webapp.WebCenterLocaleWrapperFilter.doFilter(WebCenterLocaleWrapperFilter.java:215)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.1 Client was not authenticated
         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 oracle.webcenter.collab.mail.MailSession.sendMessage(MailSession.java:850)
    Edited by: indra_owc on Jan 9, 2010 6:14 PM

    The server probably wants you to use the STARTTLS command before you authenticate.
    See the com.sun.mail.smtp package javadocs for the property to set to enable that.

Maybe you are looking for