Tcp_intranet & tcp_local channel

the default domain is domain.net
when [email protected] send an email to another user in the same domain the message is routed by default to the tcp_intranet channel
what can i do to route all internal mail to tcp_local channel
thanks for reply

The choice of which channel is used is made in the "internal_ip" section of the "mapping" file.
You need to make sure that all of your internal systems are included in the IP range(s) you specify there.

Similar Messages

  • Messages getting stuck in tcp_local Channel

    Hi All
    Version
    Sun Java(tm) System Messaging Server 6.1 HotFix 0.01 (built Jun 24 2004)
    libimta.so 6.1 HotFix 0.01 (built 12:52:04, Jun 24 2004)
    SunOS dakota 5.9 Generic_112233-12 sun4u sparc SUNW,Sun-Fire-V440
    Background
    In the last week we've been experiencing problems with outgoing messages getting stuck in our tcp_local channel. They can stay for up to 4 hours before dequeuing. We plan to install Patch 116568 which is the latest core patch for our version of the Messaging Server.
    To date we haven't experienced any DNS problems and have not made any configuration changes.
    However I was just wondering if anyone had come across this type of problem before? We're hoping the patch will resolve the issue but would be interested in other alternatives.
    Thanks in advance
    Paul

    You'll have to do more research before I can offer help. . .
    It's not unusual for some messages to be retried, and depending on the destination, that may take a while.
    Some outside domains are always slow. If you have many messages queued for such outside domains, they can involve the whole server, and cause mails to queue up behind them.
    Many installations create a new channel, such as, "tcp_slow", and use rewrite rules to move messages addressed to these domains (aol, hotmail, earthlink, etc.) into this separate channel. You can "tune" that channel differently, and messages there won't block tcp_local.

  • How to separate ims-ms and tcp_local channel

    Since I have serveral domains in one mail store, now we can separate SMTP channel for each domain. But how to separate ims-ms and tcp_local channel for each domain? Now we are on version 6.0 patch 1
    Thanks

    I'm sorry, I don't have a clue what you're looking to do. Often folks ask for a way to do something, without telling us what it is they want to do, and the method requested isn't possible.
    tcp_local is the channel set up for mail to and from the internet. ims-ms is for delivery to the store. They're already separated.
    Please start over, and let me know what your ultimate goal is, and perhaps then, I can help you.
    There is no need to separate anything for separate domains on one mail store. . .

  • Tcp_local channel mails

    Hi,
    we are using Messaging server7u3.
    # imsimta qm summarize
    tcp_local 63 0.4
    Totals 63 0.4
    there are mails with non-existent/misspelled domains in this channel
    when will be these messages deleted? is there a automatic way to do this(delete them) by messaging server itself?
    Thanks,
    Stefan

    fwiw, if you put sample output in a \{code\} ... \{code\} block (remove the '\'), it won't jam it all together:
    # imsimta qm summarize
                           tcp_local        63        0.4
                              Totals        63        0.4Also, fyi, you can get more information if you use -database on summary or view database before doing the summary command:
    qm.maint> sum -data
                                         Total                                    Total
                             Channel  Messages =  Active + Pending + Delayed  Size (Mb)
                           tcp_local         8         0         0         8        0.0
    --------------------------------  --------  --------  --------  --------  ---------Mine isn't particularly useful at the moment, but I just want to get this info out there - check out the -database view.
    If you use the directory command on that channel, eg:
    qm.maint> dir tcp_local
    Wed, 16 Dec 2009 10:19:10 -0500 (EST)
    Data gathered from the queue directory tree
    Channel: tcp_local                Size Queued since
        1 ZQg0M2q0sHQp2.00               5  15 Dec 2009 00:30:00
        2 ZIg0M1a0EDkW0.00               5  12 Dec 2009 00:30:00
        3 Z9g0L0W0PBQs2.00               6  09 Dec 2009 00:30:00
        4 ZCg0M0207Wkc3.00               6  10 Dec 2009 00:30:00
        5 Z9g0L0W0PBQs0.00               6  09 Dec 2009 00:30:00
        6 ZIg0M1a0EDkW2.00               5  12 Dec 2009 00:30:00
        7 ZCg0M0207Wkc1.01               6  10 Dec 2009 00:30:00
        8 ZQg0M2q0sHQp0.00               5  15 Dec 2009 00:30:00
    Total size:                         44
    Grand total size:                   44Now that you have a list of messages, you can use the qm history command on one of them to see what has happened when it has tried to relay the message.
    You may also want to set LOG_FILENAME=1 in option.dat (and do imsimta cnbuild; and imsimta restart) so file names will be logged in mail.log_current. That way you could correlate the file names to events in the log file.
    If the message is addressed to a completely invalid domain (no A record, no MX records, no CNAME) then attempting to lookup the hostname to try to connect to would fail and that should be a hard failure and the message should be returned to sender immediately. So I would guess they yours are addressed to domains that exist in DNS but are not reachable. Those will sit in the queue and retry until the final notices period expires. See [the notices channel option doc|http://msg.wikidoc.info/index.php/Notices,_nonurgentnotices,_normalnotices,_urgentnotices_Channel_Options].
    Edited by: kellyc on Dec 16, 2009 10:21 AM

  • Imta.cnf - had to add nameservers to tcp_local channel?

    I am working through a new installation of Sun Messaging Server. I was unable to send email outside of my domain and after a fair bit of debugging, I found that the MX lookups were failing. Being unfamiliar with the imta.cnf file (only been working with this a week) I finally figured out that what I needed to edit was tcp_local.
    I had to add the followint to tcp_local to get it to work...
    ! tcp_local
    tcp_local smtp nameservers xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx ... rest of defaults here...
    My question is this... when I do a nslookup from the command line, things work. So, why would I have had to add the nameservers entry into imta.cnf?
    -bash-3.00# nslookup gmail.com
    Server: 130.39.245.26
    Address: 130.39.245.26#53
    Non-authoritative answer:
    Name: gmail.com
    Address: 64.233.161.107
    Name: gmail.com
    Address: 64.233.171.107
    Name: gmail.com
    Address: 216.239.57.107
    -bash-3.00# nslookup
    set type=mx
    gmail.comServer: 130.39.245.26
    Address: 130.39.245.26#53
    Non-authoritative answer:
    gmail.com mail exchanger = 10 gsmtp83-2.google.com.
    gmail.com mail exchanger = 10 gsmtp185-2.google.com.
    gmail.com mail exchanger = 5 gmail-smtp-in.l.google.com.
    gmail.com mail exchanger = 10 gsmtp83.google.com.
    gmail.com mail exchanger = 10 gsmtp163.google.com.
    gmail.com mail exchanger = 10 gsmtp185.google.com.
    Authoritative answers can be found from:
    gmail.com nameserver = ns1.google.com.
    gmail.com nameserver = ns2.google.com.
    gmail.com nameserver = ns3.google.com.
    gmail.com nameserver = ns4.google.com.
    However, like I say, any message I sent to myself at gmail.com (or any other domain) sat in the queue forever. If I looked at the messages in the tcp_local queue, they all complained about MX failing.
    Failed MX lookup; try again later
    Boundary_(ID_MUEkO506xOVmuOTx9cuOYQ)
    Wed, 05 Oct 2005 00:52:58 -0500 (CDT)
    Failed MX lookup; try again later
    Boundary_(ID_MUEkO506xOVmuOTx9cuOYQ)
    Wed, 05 Oct 2005 00:54:37 -0500 (CDT)
    Failed MX lookup; try again later
    Boundary_(ID_MUEkO506xOVmuOTx9cuOYQ)
    Wed, 05 Oct 2005 01:17:56 -0500 (CDT)
    Failed MX lookup; try again later
    Boundary_(ID_MUEkO506xOVmuOTx9cuOYQ)
    Wed, 05 Oct 2005 01:18:27 -0500 (CDT)
    Failed MX lookup; try again later
    Boundary_(ID_MUEkO506xOVmuOTx9cuOYQ)
    Wed, 05 Oct 2005 01:20:14 -0500 (CDT)
    Failed MX lookup; try again later
    Boundary_(ID_MUEkO506xOVmuOTx9cuOYQ)
    Wed, 05 Oct 2005 01:33:00 -0500 (CDT)
    Failed MX lookup; try again later
    Boundary_(ID_MUEkO506xOVmuOTx9cuOYQ)
    Wed, 05 Oct 2005 01:33:38 -0500 (CDT)
    Failed MX lookup; try again later
    Boundary_(ID_MUEkO506xOVmuOTx9cuOYQ)
    Wed, 05 Oct 2005 01:36:19 -0500 (CDT)
    Failed MX lookup; try again later
    Boundary_(ID_MUEkO506xOVmuOTx9cuOYQ)
    Wed, 05 Oct 2005 01:38:52 -0500 (CDT)
    Failed MX lookup; try again later
    Boundary_(ID_MUEkO506xOVmuOTx9cuOYQ)
    Wed, 05 Oct 2005 01:46:22 -0500 (CDT)
    Failed MX lookup; try again later
    and on and on....
    my /etc/resolv.conf has proper entries.
    my nsswitch.conf has this:
    # You must also set up the /etc/resolv.conf file for DNS name
    # server lookup. See resolv.conf(4).
    hosts: files dns
    Can anyone help me out here?

    Hm. I know of no such problem on Solaris. I run it on Solaris, myself, and have never seen anythikng like this.
    You're sure that you had no DNS problem, that has since gone away?
    You are letting nscd run? (there is a Solaris issue that running nscd works around, where if more than 256 dns lookups are done at one time, a buffer overflows)
    You might want to hit
    http://sunsolve.sun.com
    and pull some current patches for your original release of 6.2:
    118207-37
    117784-10
    119254-02
    119345-01
    118210-23
    118540-10
    118042-07
    A couple of the above are language only, so you may not need all.

  • Tcp_intranet channel to accept only for a specific internal IP address

    I am currently using SunOne Messaging Server v5.2:
    I would like to configure our MTA to only deliver emails to their proper mailstore if the emails are from 2 specific internal IP addresses. If emails that originated from the intranet are not from the above 2 IP addresses then I would like to re-route the emails to a particular MTA(port 25) for processing. Can this be done? And if so, what changes do I need to make to the imta.cnf file/mappings file?
    The tcp_local channel for outgoing emails should remain the same. My guess is that I have to modify the tcp_intranet channel to only accept from specific IPaddresses, Otherwise pass the emails to another channel or MTA for processing.
    Question: Can a user spoof an Email with an improper IP address. And if so, do I have to turn on reverse lookup to stop this from happening Or is reverse lookup on by default? Where is the reverse lookup setting? In the imta.cnf file?

    by default, we do examine the ip address of a mail sending partner. this is hard to spoof, and it's not based on "from" attribute.
    However, I'm not at all sure that what you're asking for is truly something achieveable by any normal means, nor if it's truly useful ..
    Perhaps you could create another channel for your specific ip addresses, and that would work. . .

  • Delete specific attachment file through Conversion Channel ?

    version : iMS5.2 sp1
    O/S : Solaris 2.6 Generic_105181-29
    I wanted to delete specific attachment file(ex: ALTDESK.ZIP) through Conversion Channel.
    So I set up like below..
    1) In mappings file
    =================
    CONVERSIONS
    IN-CHAN=tcp_intranet;OUT-CHAN=tcp_local;CONVERT Yes
    ==============
    I only want to delete attached file from tcp_intranet to tcp_local.
    2) msg-INSTANCE/imta/config/conversions
    example mail header ::
    --- omit ----
    MIME-version: 1.0
    X-Mailer: iPlanet Messenger Express 5.2 Patch 1 (built Aug 19 2002)
    Content-type: multipart/mixed; boundary=--6b2385053506b85
    Content-language: ko
    X-Accept-Language: ko
    Priority: normal
    This is a multi-part message in MIME format.
    ----6b2385053506b85
    Content-Type: text/plain; charset=EUC-KR
    Content-Disposition: inline
    Content-Transfer-Encoding: quoted-printable
    ----6b2385053506b85
    Content-Type: application/x-zip-compressed
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment; filename=ALTDESK.ZIP
    - conversions file setting
    ==================================================
    in-channel=tcp_intranet; out-channel=tcp_local;
    in-type=application; in-subtype=x-zip-compressed;
    parameter-symbol-0=ALTDESK.ZIP; parameter-copy-0=*;
    dparameter-symbol-0=ALTDESK.ZIP; dparameter-copy-0=*;
    message-header-file=2; original-header-file=1;
    override-header-file=1; override-option-file=1;
    command="/product/leeky/convert.sh"
    ============================================
    3) /product/leeky/convert.sh file
    ========================
    #!/bin/sh
    if [ $? -eq 1 ]; then
    echo "STATUS=178030178" >> $OUTPUT_OPTIONS
    else
    cp $INPUT_FILE $OUTPUT_FILE
    fi
    =========================
    4) The problems I face are
    - All of zip files which are filtered is deleted. As you can see 2) I only want to delete ALTDESK.ZIP file
    But, all of the zip-compressed files are deleted at the moment.
    - This converison channel is work(even if all zip-compressed files are deleted). But sometimes this is not
    working(2 or 3 times out of 10). I don not know why.
    - Above all, I am not sure 2) and 3) settings are good. English is a second language to me. So it was
    not easy to understand conversion channel setting in Admin Guide.
    - How can I see the out put of "$OUTPUT_OPTIONS" ? I do not know where I can see that.
    Is there anybody to help me ?

    The section of the admin guide which can help is:
    http://docs.sun.com/source/816-6009-10/channel2.htm#42283
    Here there is an explanation of how the mime headers of the message part would align with the entries one would put into the conversions file entry. (The document has an error where it talks about APPARENT_NAME and APPARENT_FILENAME. It should really say the words "NAME" and "FILENAME" respectively).
    Based on that document, the MIME headers of your message part :
    Content-Type: application/x-zip-compressed
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment; filename=ALTDESK.ZIP
    will align with a conversions file settiong of:
    in-channel=tcp_intranet; out-channel=tcp_local;
    in-type=application; in-subtype=x-zip-compressed;
    parameter-symbol-0=NAME; parameter-copy-0=*;
    dparameter-symbol-0=FILENAME; dparameter-copy-0=*;
    message-header-file=2; original-header-file=1;
    override-header-file=1; override-option-file=1;
    command="/product/leeky/convert.sh"
    and a /product/leeky/convert.sh script which reads something like:
    #!/bin/sh
    grep "$FILENAME" /product/leek/badfiles.list
    if [ $? -eq 1 ]; then
    echo "STATUS=178030178" >> $OUTPUT_OPTIONS
    else
    grep "$NAME" /product/leek/badfiles.list
    if [ $? -eq 1 ]; then
    echo "STATUS=178030178" >> $OUTPUT_OPTIONS
    else
    cp $INPUT_FILE $OUTPUT_FILE
    fi
    fi
    The lines:
    parameter-symbol-0=NAME; parameter-copy-0=*;
    dparameter-symbol-0=FILENAME; dparameter-copy-0=*;
    tells the conversion channel to make the environment variable $NAME avaliable to your program with a value corresponding to the "name=" clause on the Content-Type line of the MIME headers. The environment variable $FILENAME is made avalable to your program and takes on the value extracted from the filename=" clause on the content-disposition line of the MIME headers.
    The document at :
    http://docs.sun.com/source/816-6092-10/conversion.html
    may help provide other examples.

  • Tcp_intranet

    Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)
    libimta.so 6.3-6.03 (built 17:07:13, Mar 14 2008; 32bit)
    SunOS hermes 5.10 Generic_137112-05 i86pc i386 i86pc
    I'm having a huge problem. Messages from the internet that reverse to a single word like dkfsldfskdlf instead of dkfsldfskdlf.example.com are coming in on tcp_intranet instead of tcp_local. I've been watching this for awhile. At first all i noticed was the localhost ones now spammers are using others. I thought the dispatcher simply used the mappings Internal_ip to route to either tcp_local or tcp_intranet.
    INTERNAL_IP
    xxx.xxx.xxx.xxx $Y
    127.0.0.1 $Y
    * $N
    i used xxx to hide the ip.
    here is a sample log with one of the many ip's with a single word as reverse dns
    32396:11-Feb-2009 21:58:40.32 682e.159e.18437 tcp_intranet ims-ms E 1 [email protected] rfc822;[email protected] xxxxxx@ims-ms-daemon 20 /opt/SUNWmsgsr/data/queue/ims-ms/015/ZZg1n6cf_uvIy.00 <[email protected]> mailsrv h205175156180 (h205175156180 [205.175.156.180])
    When you dig the ip you can see what I mean.
    What should I check?
    Edited by: mark42324 on Feb 11, 2009 9:53 PM
    Edited by: mark42324 on Feb 11, 2009 10:01 PM

    mark42324 wrote:
    I'm having a huge problem. Messages from the internet that reverse to a single word like dkfsldfskdlf instead of dkfsldfskdlf.example.com are coming in on tcp_intranet instead of tcp_local. I've been watching this for awhile. At first all i noticed was the localhost ones now spammers are using others. I thought the dispatcher simply used the mappings Internal_ip to route to either tcp_local or tcp_intranet.
    here is a sample log with one of the many ip's with a single word as reverse dns
    32396:11-Feb-2009 21:58:40.32 682e.159e.18437 tcp_intranet ims-ms E 1 [email protected] rfc822;[email protected] xxxxxx@ims-ms-daemon 20 /opt/SUNWmsgsr/data/queue/ims-ms/015/ZZg1n6cf_uvIy.00 <[email protected]> mailsrv h205175156180 (h205175156180 [205.175.156.180])
    This problem can occur if you have not set "identnonenumeric" in your tcp_local channel configuration (imta.cnf).
    NB: "identnonenumeric" is the default configuration for new installations of Messaging Server 6.3.
    There is more detailed information about the ident* keywords here:
    http://msg.wikidoc.info/index.php/Identtcp%2C_identtcplimited%2C_identtcpnumeric%2C_identtcpsymbolic%2C_identnone%2C_identnonelimited%2C_identnonenumeric%2C_identnonesymbolic%2C_forwardchecknone%2C_forwardchecktag%2C_forwardcheckdelete_Channel_Options
    Regards,
    Shane.

  • What's the reprocess channel for

    iPlanet Messaging Server 5.2 HotFix 1.25 (built Mar 3 2004)
    libimta.so 5.2 HotFix 1.25 (built 17:45:10, Mar 3 2004)
    We set the maxjobs 40 for tcp_local channel and 10 for tcp_intranet channel. And also set filter police for each channel, for backup we create two tcp_monitor channel for which maxjobs is 5. But we found that mails frequently be delivered to reprocess channel.
    Such as:
    15-Nov-2004 16:58:53.85 tcp_intranet tcp_local E 2 [email protected] rfc822;[email protected] [email protected] localhost
    15-Nov-2004 16:58:53.86 tcp_intranet reprocess E 1 [email protected] rfc822;[email protected] [email protected] localhost
    15-Nov-2004 16:58:53.87 tcp_intranet tcp_monitor_b E 2 [email protected] rfc822;[email protected] [email protected] localhost
    Could anyone tell me why the reprocessing frequently happened.

    reprocess channel is where vacation mails, DSN (Delivery Status Notification), and such go.
    Did you increase the pool available for your maxjobs in job_controller.cnf?

  • How to Configure internet channel to a relay SMTP server

    Hi men,
    My problem is How to Configure internet channel(or outbound mail) sending to a relay SMTP server. I want to test my spam software.
    I have search and read Sun Messaging Administration document but haven't fought the guide.
    ./imsimta version
    Sun Java(tm) System Messaging Server 7.0-0.04 32bit (built Jun 20 2008)
    Thank and Regards,
    Duc Tien.

    tien86 wrote:
    My problem is How to Configure internet channel(or outbound mail) sending to a relay SMTP server. I want to test my spam software. You can use the daemon channel keyword with the tcp_local channel e.g.
    ! tcp_local
    tcp_local smtp nomx multiple remotehost inner switchchannel identnonenumeric \
    pool SMTP_POOL maytlsserver maysaslserver saslswitchchannel tcp_auth loopcheck \
    daemon relay.yourdomain.com
    tcp-daemonIf the relay SMTP server only has an A record then use "nomx" instead of "mx".
    http://msg.wikidoc.info/index.php/Mx%2C_nomx%2C_nodns%2C_defaultmx%2C_randommx%2C_nonrandommx%2C_nameservers%2C_defaultnameservers_Channel_Options
    The "multiple" keyword instead of "single_sys" helps performance by increasing the number of emails per connection when sending to a relay system.
    http://msg.wikidoc.info/index.php/Multiple%2C_addrsperfile%2C_single%2C_single_sys_Channel_Options
    Regards,
    Shane.

  • Spam Filtering Not Applied to LMTP Channels

    Hello,
    I've already setup spamassassin filtering at ims-ms channel, but only deliveries from tcp_local channels are being filtered. Messages from other frontend machines delivering to backends using LMTP are not tagged nor filtered.
    What's wrong with this?
    Relevant Channel Definitions:
    +! ims-ms+
    ims-ms defragment subdirs 20 notices 1 7 14 21 28 backoff "pt5m" "pt10m" "pt30m" "pt1h"  "pt2h" "pt4h" maxjobs 2 pool IMS_POOL fileinto $U$S@$D destinationspamfilter1optin spam destinationfilter file:IMTA_TABLE:spamassassin_sieve.filter+
    ims-ms-daemon
    On the front end:
    +! tcp_lmtpcs (LMTP client - store)+
    tcp_lmtpcs defragment lmtp multigate connectcanonical fileinto @$4O:$U$S@$D port 225 nodns single_sys subdirs 20 maxjobs 7 pool SMTP_POOL dequeue_removeroute+
    lmtpcs-daemon

    If you are delivering via LMTP, then the ims-ms channel will not be involved. You will need to configure the LMTP channels on the frontend MTA systems with destination filters like you have done for the ims-ms channel on the store.

  • Tcp_local email delivery slow

    Hi all,
    I am facing one problem. Please help me to solve this issue. Thanks.
    Problem statement
    I grep following info from mail.log. Please look at the timing at fourth line. It took 2 hours to process. Please help.
    17-Feb-2009 14:42:46.58 tcp_auth     pmxchannel   EA 2 [email protected] rfc822;[email protected] [email protected] /opt/SUNWmsgsr/data/queue/pmxchannel/ZZg0n3DYqAnyE.00 <95E81E94BACF447AA5B11C6290EB9D0E@laptop> *[email protected] laptop ([116.197.232.152])
    17-Feb-2009 14:42:51.28 pmxchannel   tcp_local    E 2 [email protected] rfc822;[email protected] [email protected] /opt/SUNWmsgsr/data/queue/tcp_local/019/ZZg0n0D0qRoTi.00 <95E81E94BACF447AA5B11C6290EB9D0E@laptop> mailsrv pmxchannel-daemon.mta1.testaz.com
    17-Feb-2009 14:42:51.28 pmxchannel                D 2 [email protected] rfc822;[email protected] [email protected] /opt/SUNWmsgsr/data/queue/pmxchannel/ZZg0n3DYqAnyE.00 <95E81E94BACF447AA5B11C6290EB9D0E@laptop> *[email protected]
    17-Feb-2009 16:45:12.81 tcp_local                 D 2 [email protected] rfc822;[email protected] [email protected] /opt/SUNWmsgsr/data/queue/tcp_local/019/ZZg0n0D0qRoTi.00 <95E81E94BACF447AA5B11C6290EB9D0E@laptop> mailsrv  dns;gmail-smtp-in.l.google.com (TCP|202.56.131.71|39848|209.85.199.27|25) (mx.google.com ESMTP k2si13108138rvb.4) smtp;250 2.1.5 OK k2si13108138rvb.4my messaging server version:
    # /opt/SUNWmsgsr/sbin/imsimta version
    Sun Java(tm) System Messaging Server 6.2-7.05 (built Sep 5 2006)
    libimta.so 6.2-7.05 (built 12:18:44, Sep 5 2006)

    Yap wrote:
    I grep following info from mail.log. Please look at the timing at fourth line. It took 2 hours to process.Sounds like you need to clean-up/tune your tcp_local channel. The messaging group have written a document about this very issue:
    http://www.sun.com/bigadmin/sundocs/articles/troubleshoot-mta.jsp
    Regards,
    Shane.

  • Tcp_local

    Hi i am new in SUN messaging S.W and i have question, the tcp_local channel contain ýabout 17000 message.ý
    Is that fine

    MariamS wrote:
    Hi i am new in SUN messaging S.W and i have question, the tcp_local channel contain ýabout 17000 message.ý
    Is that fineHaving a "large" number of emails in a queue may be entirely normal and expected for your installation or it could indicate you have a problem.
    I suggest you read the following article:
    http://www.sun.com/bigadmin/sundocs/articles/troubleshoot-mta.jsp
    Regards,
    Shane.

  • Address list error -- 5.7.1 Relaying not allowed

    Hi,
    We have setup the Java Messaging Server to send/recieve mails from a gateway. The inbound mail flow works perfectly but, the outbound mail flow has issues.
    The outbound mails are not hitting the gateway. When checked the log for outbound mail, it displays the address list error - 5.7.1 Relaying not allowed for any domain i.e gmail.com, etc
    version:
    Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)
    libimta.so 6.3-5.02 (built 17:15:31, Oct 12 2007; 32bit)
    SunOS P1192FLPLN 5.9 Generic_118558-02 sun4u sparc SUNW,Sun-Fire
    here is the log for reference...
    =========================================================================
    root@P1192FLPLN # /opt/SUNWmsgsr/sbin/imsimta test -rewrite -debug -source_channel=tcp_local [email protected] [email protected]
    Initializing mm_.
    Initializing mm_ submission.
    Checking identifiers.
    *** Debug output from initializing MM for submission:
    17:09:37.43: Debug output enabled, system P1192FLPLN.extmail.xyz.com, process 3fbf.1, message enqueue routines version V6.3 compiled Oct 12 2007 17:15:38
    17:09:37.43: mmc_winit('tcp_local','[email protected]','') called.
    17:09:37.43: Address reversal invoked on [email protected], force reverse URL 1, capture 1
    17:09:37.43: Rewriting:  Mbox = "abhishek.sen", host = "extmail.xyz.com", domain = "$*", literal = "", tag = ""
    17:09:37.43: Rewrite: "$*", position 0, hash table -
    17:09:37.43:   Found: "$A$E$F$U%[email protected]"
    17:09:37.43:   Rewrite failed, not forward.
    17:09:37.43: Rewrite: "$*", position 1, hash table -
    17:09:37.43:   Failed.
    17:09:37.43: Rewrite: "$*", position 0, rewrite database -
    17:09:37.43:   Failed
    17:09:37.43: Rewriting:  Mbox = "abhishek.sen", host = "extmail", domain = "extmail.xyz.com", literal = "", tag = ""
    17:09:37.43: Rewrite: "extmail.xyz.com", position 0, hash table -
    17:09:37.43:   Found: "$U%[email protected]"
    17:09:37.43:   New mailbox: "abhishek.sen".
    17:09:37.43:   New host: "extmail.xyz.com".
    17:09:37.43:   New route: "P1192FLPLN.extmail.xyz.com".
    17:09:37.43:   New channel system: "P1192FLPLN.extmail.xyz.com".
    17:09:37.43: Looking up host "P1192FLPLN.extmail.xyz.com".
    17:09:37.43:   - found on channel l                              
    17:09:37.43: Routelocal flag set; scanning for % and !
    17:09:37.43:   Checking reverse URL cache for: [email protected]
    17:09:37.43:   Applying reverse URL pattern ldap:///$V?$N?sub?$R to: [email protected]
    17:09:37.48:   Resulting URL: ldap:///o%3Dextmail.xyz.com%2Co%3Dext?preferredlanguage,mailmsgmaxblocks,mail,mailalternateaddress,mailequivalentaddress?sub?(|([email protected])([email protected])([email protected]))
    17:09:37.49: mmc_open_url called to open ldap:///o%3Dextmail.xyz.com%2Co%3Dext?preferredlanguage,mailmsgmaxblocks,mail,mailalternateaddress,mailequivalentaddress?sub?(|([email protected])([email protected])([email protected])), flags = 384
    17:09:37.49:   URL with quotes stripped: ldap:///o%3Dextmail.xyz.com%2Co%3Dext?preferredlanguage,mailmsgmaxblocks,mail,mailalternateaddress,mailequivalentaddress?sub?(|([email protected])([email protected])([email protected]))
    17:09:37.49:   LDAP URL identified
    17:09:37.49: URL context #1 will be used
    17:09:37.49:   Performing URL search on: ldap:///o%3Dextmail.xyz.com%2Co%3Dext?preferredlanguage,mailmsgmaxblocks,mail,mailalternateaddress,mailequivalentaddress?sub?(|([email protected])([email protected])([email protected]))
    17:09:37.53: mmc_read_url result: [uid=asen,ou=People,o=extmail.xyz.com,o=ext]
    17:09:37.53:   URL resolution returned: [uid=asen,ou=People,o=extmail.xyz.com,o=ext]
    17:09:37.53: mmc_read_url result: [preferredlanguage] en
    17:09:37.53:   URL resolution returned: [preferredlanguage] en
    17:09:37.53:       Attribute index: 0
    17:09:37.53:       LDAP URL produced preferred language en
    17:09:37.53: mmc_read_url result: [mailmsgmaxblocks] 700
    17:09:37.53:   URL resolution returned: [mailmsgmaxblocks] 700
    17:09:37.53:       Attribute index: 0
    17:09:37.53:       LDAP URL produced blocklimit 700
    17:09:37.53: mmc_read_url result: [mail] [email protected]
    17:09:37.53:   URL resolution returned: [mail] [email protected]
    17:09:37.54:       Attribute index: 0
    17:09:37.54:       LDAP URL produced address [email protected]
    17:09:37.54:   No more results to return
    17:09:37.54:     Override postmaster: [email protected]
    17:09:37.54:     Preferred language en
    17:09:37.54:     Content return block limit now 700
    17:09:37.54:   Mapped return address: [email protected]
    17:09:37.54:   from_access mapping check: ||MAIL|tcp_local|[email protected]|
    17:09:37.54: Queue area size 73232902, temp area size 2067314
    17:09:37.54:   18308225 blocks of effective free queue space available; setting disk limit accordingly.
    17:09:37.54:   1033657 blocks of free temporary space available; setting disk limit accordingly.
    17:09:37.54:       - passed.
    17:09:37.54: Rewriting:  Mbox = "abhishek.sen", host = "extmail.xyz.com", domain = "$*", literal = "", tag = ""
    17:09:37.54: Rewrite: "$*", position 0, hash table -
    17:09:37.54:   Found: "$A$E$F$U%[email protected]"
    17:09:37.54:   Rewrite failed, not forward.
    17:09:37.54: Rewrite: "$*", position 1, hash table -
    17:09:37.54:   Failed.
    17:09:37.54: Rewrite: "$*", position 0, rewrite database -
    17:09:37.54:   Failed
    17:09:37.54: Rewriting:  Mbox = "abhishek.sen", host = "extmail", domain = "extmail.xyz.com", literal = "", tag = ""
    17:09:37.54: Rewrite: "extmail.xyz.com", position 0, hash table -
    17:09:37.54:   Found: "$U%[email protected]"
    17:09:37.54:   New mailbox: "abhishek.sen".
    17:09:37.54:   New host: "extmail.xyz.com".
    17:09:37.54:   New route: "P1192FLPLN.extmail.xyz.com".
    17:09:37.56:   New channel system: "P1192FLPLN.extmail.xyz.com".
    17:09:37.56: Looking up host "P1192FLPLN.extmail.xyz.com".
    17:09:37.56:   - found on channel l                              
    17:09:37.56: Routelocal flag set; scanning for % and !
    *** Debug output from rewriting a forward header address:
    17:09:37.56: Rewriting:  Mbox = "bhanu.prasad", host = "xyz.com", domain = "$*", literal = "", tag = ""
    17:09:37.56: Rewrite: "$*", position 0, hash table -
    17:09:37.56:   Found: "$A$E$F$U%[email protected]"
    17:09:37.57:   Rewrite failed, not envelope.
    17:09:37.57: Rewrite: "$*", position 1, hash table -
    17:09:37.57:   Failed.
    17:09:37.57: Rewrite: "$*", position 0, rewrite database -
    17:09:37.57:   Failed
    17:09:37.57: Rewriting:  Mbox = "bhanu.prasad", host = "relianceada", domain = "xyz.com", literal = "", tag = ""
    17:09:37.57: Rewrite: "xyz.com", position 0, hash table -
    17:09:37.57:   Failed.
    17:09:37.57: Rewrite: "xyz.com", position 0, rewrite database -
    17:09:37.59:   Failed
    17:09:37.59: Rewriting:  Mbox = "bhanu.prasad", host = "relianceada", domain = ".com", literal = "", tag = ""
    17:09:37.59: Rewrite: "*.com", position 0, hash table -
    17:09:37.59:   Failed
    17:09:37.59: Rewrite: ".com", position 0, hash table -
    17:09:37.59:   Found: "$U%$H$D@TCP-DAEMON"
    17:09:37.59:   New mailbox: "bhanu.prasad".
    17:09:37.59:   New host: "xyz.com".
    17:09:37.59:   New route: "TCP-DAEMON".
    17:09:37.59:   New channel system: "TCP-DAEMON".
    17:09:37.59: Looking up host "TCP-DAEMON".
    17:09:37.60:   - found on channel tcp_local                      
    17:09:37.60: Rewriting:  Mbox = "bhanu.prasad", host = "xyz.com", domain = "$*", literal = "", tag = ""
    17:09:37.60: Rewrite: "$*", position 0, hash table -
    17:09:37.60:   Found: "$A$E$F$U%[email protected]"
    17:09:37.60:   Rewrite failed, not envelope.
    17:09:37.60: Rewrite: "$*", position 1, hash table -
    17:09:37.60:   Failed.
    17:09:37.60: Rewrite: "$*", position 0, rewrite database -
    17:09:37.60:   Failed
    17:09:37.61: Rewriting:  Mbox = "bhanu.prasad", host = "relianceada", domain = "xyz.com", literal = "", tag = ""
    17:09:37.61: Rewrite: "xyz.com", position 0, hash table -
    17:09:37.61:   Failed.
    17:09:37.61: Rewrite: "xyz.com", position 0, rewrite database -
    17:09:37.61:   Failed
    17:09:37.61: Rewriting:  Mbox = "bhanu.prasad", host = "relianceada", domain = ".com", literal = "", tag = ""
    17:09:37.61: Rewrite: "*.com", position 0, hash table -
    17:09:37.61:   Failed
    17:09:37.61: Rewrite: ".com", position 0, hash table -
    17:09:37.63:   Found: "$U%$H$D@TCP-DAEMON"
    17:09:37.63:   New mailbox: "bhanu.prasad".
    17:09:37.63:   New host: "xyz.com".
    17:09:37.63:   New route: "TCP-DAEMON".
    17:09:37.63:   New channel system: "TCP-DAEMON".
    17:09:37.63: Looking up host "TCP-DAEMON".
    17:09:37.63:   - found on channel tcp_local                      
    17:09:37.63:   Rewrite rules result: [email protected]
    17:09:37.63:   Checking reverse URL cache for: [email protected]
    17:09:37.63:   Applying reverse URL pattern ldap:///$V?$N?sub?$R to: [email protected]
    17:09:37.65:   URL generation failed, status = 0
    *** Debug output from rewriting a forward envelope address:
    17:09:37.65: Rewriting:  Mbox = "bhanu.prasad", host = "xyz.com", domain = "$*", literal = "", tag = ""
    17:09:37.65: Rewrite: "$*", position 0, hash table -
    17:09:37.65:   Found: "$A$E$F$U%[email protected]"
    17:09:37.65:   Match, pattern = "xyz.com", current = "(*domaincheck*)"
    17:09:37.65:     old state = not checked.
    17:09:37.65:     Domain check on xyz.com.
    17:09:37.66:     Could not add domain result 0 to cache for xyz.com.
    17:09:37.66:     new state = fail pending.
    17:09:37.66:   Rewrite failed due to prechannel mismatch.
    17:09:37.66: Rewrite: "$*", position 1, hash table -
    17:09:37.66:   Failed.
    17:09:37.66: Rewrite: "$*", position 0, rewrite database -
    17:09:37.66:   Failed
    17:09:37.66: Rewriting:  Mbox = "bhanu.prasad", host = "relianceada", domain = "xyz.com", literal = "", tag = ""
    17:09:37.66: Rewrite: "xyz.com", position 0, hash table -
    17:09:37.66:   Failed.
    17:09:37.67: Rewrite: "xyz.com", position 0, rewrite database -
    17:09:37.67:   Failed
    17:09:37.67: Rewriting:  Mbox = "bhanu.prasad", host = "relianceada", domain = ".com", literal = "", tag = ""
    17:09:37.67: Rewrite: "*.com", position 0, hash table -
    17:09:37.67:   Failed
    17:09:37.67: Rewrite: ".com", position 0, hash table -
    17:09:37.67:   Found: "$U%$H$D@TCP-DAEMON"
    17:09:37.67:   New mailbox: "bhanu.prasad".
    17:09:37.67:   New host: "xyz.com".
    17:09:37.67:   New route: "TCP-DAEMON".
    17:09:37.69:   New channel system: "TCP-DAEMON".
    17:09:37.69: Looking up host "TCP-DAEMON".
    17:09:37.69:   - found on channel tcp_local                      
      address channel        = tcp_local                      
      forward channel        = tcp_local                      
      channel description    =
      channel caption        =
      channel user filter    =
      dest channel filter    =
      source channel filter  =
      channel flags #0       = BIDIRECTIONAL SINGLE_SYSTEM IMMNONURGENT NOSERVICEALL  channel flags #1       = SMTP_CRLF MX IDENTNONENUMERIC DEFAULT
      channel flags #2       = COPYSENDPOST COPYWARNPOST POSTHEADONLY HEADERINC NOEXPROUTE
      channel flags #3       = LOGGING NORESTRICTED RETAINSECURITYMULTIPARTS
      channel flags #4       = EIGHTNEGOTIATE HEADERKEEPORDER NOHEADERREAD RULES
      channel flags #5       = TRUNCATESMTPLONGLINES
      channel flags #6       = LOCALUSER REPORTNOTARY
      channel flags #7       = SWITCHCHANNEL REMOTEHOST DATEFOUR DAYOFWEEK
      channel flags #8       = NODEFRAGMENT EXQUOTA REVERSE NOCONVERT_OCTET_STREAM
      channel flags #9       = NOTHURMAN INTERPRETENCODING USEINTERMEDIATE RECEIVEDFROM VALIDATELOCALNONE NOTURN
      defaulthost            = extmail.xyz.com extmail.xyz.com
      linelength             = 998
      addrsperfile           = 99
      channel env addr type  = SOURCEROUTE
      channel hdr addr type  = SOURCEROUTE
      channel official host  = tcp-daemon
      channel queue 0 name   = SMTP_POOL
      channel queue 1 name   = SMTP_POOL
      channel queue 2 name   = SMTP_POOL
      channel queue 3 name   = SMTP_POOL
      channel after params    =
      channel daemon name    = 10.8.51.126
      channel user name      =
      urgentnotices          = 1 2 4 7
      normalnotices          = 1 2 4 7
      nonurgentnotices       = 1 2 4 7
      channel rightslist ids =
      local behavior flags   = %x0
      expandchannel          =
      notificationchannel    =
      dispositionchannel     =
      tlsswitchchannel       =
      backward channel       = tcp_local                      
      unique identifier      = [email protected]
      header forward address = [email protected]  (route (TCP-DAEMON,TCP-DAEMON)) (host xyz.com)
      header reverse address = [email protected]
      envelope forw address  = [email protected]  (route (TCP-DAEMON,TCP-DAEMON)) (host xyz.com)
      envelope rev address   = [email protected]  (route (TCP-DAEMON,TCP-DAEMON)) (host xyz.com)
      name                   =
      mbox                   = bhanu.prasad
    Extracted address action list:
        [email protected]
    Extracted 733 address action list:
        [email protected]
    Address list expansion:
    *** Debug output from alias expansion:
    17:09:37.76: Inner expand, level = 0, mailbox = [email protected]
    17:09:37.76: Rewriting:  Mbox = "bhanu.prasad", host = "xyz.com", domain = "$*", literal = "", tag = ""
    17:09:37.76: Rewrite: "$*", position 0, hash table -
    17:09:37.76:   Found: "$A$E$F$U%[email protected]"
    17:09:37.76:   Match, pattern = "xyz.com", current = "(*domaincheck*)"
    17:09:37.76:     old state = not checked.
    17:09:37.76:     Domain check on xyz.com.
    17:09:37.77:     Could not add domain result 0 to cache for xyz.com.
    17:09:37.77:     new state = fail pending.
    17:09:37.77:   Rewrite failed due to prechannel mismatch.
    17:09:37.77: Rewrite: "$*", position 1, hash table -
    17:09:37.77:   Failed.
    17:09:37.77: Rewrite: "$*", position 0, rewrite database -
    17:09:37.77:   Failed
    17:09:37.77: Rewriting:  Mbox = "bhanu.prasad", host = "relianceada", domain = "xyz.com", literal = "", tag = ""
    17:09:37.77: Rewrite: "xyz.com", position 0, hash table -
    17:09:37.77:   Failed.
    17:09:37.79: Rewrite: "xyz.com", position 0, rewrite database -
    17:09:37.79:   Failed
    17:09:37.79: Rewriting:  Mbox = "bhanu.prasad", host = "relianceada", domain = ".com", literal = "", tag = ""
    17:09:37.79: Rewrite: "*.com", position 0, hash table -
    17:09:37.79:   Failed
    17:09:37.79: Rewrite: ".com", position 0, hash table -
    17:09:37.79:   Found: "$U%$H$D@TCP-DAEMON"
    17:09:37.79:   New mailbox: "bhanu.prasad".
    17:09:37.79:   New host: "xyz.com".
    17:09:37.79:   New route: "TCP-DAEMON".
    17:09:37.80:   New channel system: "TCP-DAEMON".
    17:09:37.80: Looking up host "TCP-DAEMON".
    17:09:37.80:   - found on channel tcp_local                      
    -13 expansion total.
    *** Debug output from submitting an envelope address:
    17:09:37.80: mmc_wadr(0x0017ae68,'[email protected]','[email protected]') called.
    17:09:37.80: Copy estimate before address addition is 1
    17:09:37.80:     Parsing address [email protected]
    17:09:37.80: Rewriting:  Mbox = "bhanu.prasad", host = "xyz.com", domain = "$*", literal = "", tag = ""
    17:09:37.80: Rewrite: "$*", position 0, hash table -
    17:09:37.81:   Found: "$A$E$F$U%[email protected]"
    17:09:37.81:   Match, pattern = "xyz.com", current = "(*domaincheck*)"
    17:09:37.81:     old state = not checked.
    17:09:37.81:     Domain check on xyz.com.
    17:09:37.81:     Could not add domain result 0 to cache for xyz.com.
    17:09:37.81:     new state = fail pending.
    17:09:37.81:   Rewrite failed due to prechannel mismatch.
    17:09:37.81: Rewrite: "$*", position 1, hash table -
    17:09:37.83:   Failed.
    17:09:37.83: Rewrite: "$*", position 0, rewrite database -
    17:09:37.83:   Failed
    17:09:37.83: Rewriting:  Mbox = "bhanu.prasad", host = "relianceada", domain = "
    xyz.com", literal = "", tag = ""
    17:09:37.83: Rewrite: "xyz.com", position 0, hash table -
    17:09:37.83:   Failed.
    17:09:37.83: Rewrite: "xyz.com", position 0, rewrite database -
    17:09:37.83:   Failed
    17:09:37.83: Rewriting:  Mbox = "bhanu.prasad", host = "relianceada", domain = "
    .com", literal = "", tag = ""
    17:09:37.83: Rewrite: "*.com", position 0, hash table -
    17:09:37.84:   Failed
    17:09:37.84: Rewrite: ".com", position 0, hash table -
    17:09:37.84:   Found: "$U%$H$D@TCP-DAEMON"
    17:09:37.84:   New mailbox: "bhanu.prasad".
    17:09:37.84:   New host: "xyz.com".
    17:09:37.84:   New route: "TCP-DAEMON".
    17:09:37.84:   New channel system: "TCP-DAEMON".
    17:09:37.84: Looking up host "TCP-DAEMON".
    17:09:37.84:   - found on channel tcp_local                      
    17:09:37.84:       - adding address [email protected] to headers.
    17:09:37.86:       - orig_send_access mapping check: tcp_local|abhishek.sen@extm
    ail.xyz.com|tcp_local|[email protected]
    17:09:38.16:         - failed.
    17:09:38.16: Good address count 0 defer count 0
    17:09:38.16: Copy estimate after address addition is 1
    17:09:38.16: mmc_waend(0x0017ae68) called.
    17:09:38.16:   Copy estimate is 1
    17:09:38.16:   Queue area size 73232902, temp area size 2067288
    17:09:38.16:   36616451 blocks of effective free queue space available; setting
    disk limit accordingly.
    17:09:38.16:   1033644 blocks of free temporary space available; setting disk li
    mit accordingly.
    Expanded address:
      [email protected]
    Submitted address list:
    Address list error -- 5.7.1 Relaying not allowed: [email protected]
    Submitted notifications list:
    =========================================================================Do we have to make any changes on other config files except the imta.cnf and mappings file for inbound and outbound..
    thanks for any help
    Edited by: prasad0_0 on Jul 8, 2008 4:58 AM

    i have already setup the messaging server 6 months back.. followed the same procedure to route mails to a gateway..
    made changes to the imta.cnf for outbound mail flow to the tcp_local and mappings file to accept inbound mail flow from the gateway. Its working perfectly on the older setup, but this now, have issues with new setup.
    here is the imta.cnf file..
    ! IMTA configuration file
    ! part I : rewrite rules
    ! Domain Rewrite Rules.
    ! Uncomment this line to use domain rewrite rules
    ! from the configuration file instead of the domain database.
    ! Please refer to the iMS documentation for details.
    !<IMTA_TABLE:domains.rules
    ! Rules to select local users
    $* $A$E$F$U%[email protected]
    P1192FLPLN.extmail.xyz.com $U%[email protected]
    extmail.xyz.com $U%[email protected]
    ! ims-ms
    .ims-ms-daemon $U%$H.ims-ms-daemon@ims-ms-daemon
    ! lmtp
    !.lmtp $U%$H@lmtpcs-daemon
    ! lmtpn
    !.lmtpn $U%$H@lmtpcn-daemon
    ! native
    .native-daemon $U%$H.native-daemon@native-daemon
    ! pipe
    .pipe-daemon $U%$H.pipe-daemon@pipe-daemon
    ! tcp_local
    ! Rules for top level internet domains
    <IMTA_TABLE:internet.rules
    ! tcp_intranet
    ! Do mapping lookup for internal IP addresses
    [] $E$R${INTERNAL_IP,$L}$U%[$L]@tcp_intranet-daemon
    .extmail.xyz.com $U%$H.extmail.xyz.com@tcp_intranet-daemon
    * $U%$&0.extmail.xyz.com
    ! reprocess
    reprocess $U%reprocess.P1192FLPLN.extmail.xyz.com@reprocess-daemon
    reprocess.P1192FLPLN.extmail.xyz.com $U%reprocess.P1192FLPLN.extmail.xyz.com@reprocess-daemon
    ! process
    process $U%process.P1192FLPLN.extmail.xyz.com@process-daemon
    process.P1192FLPLN.extmail.xyz.com $U%process.P1192FLPLN.extmail.xyz.com@process-daemon
    ! defragment
    defragment $U%defragment.P1192FLPLN.extmail.xyz.com@defragment-daemon
    defragment.P1192FLPLN.extmail.xyz.com $U%defragment.P1192FLPLN.extmail.xyz.com@defragment-daemon
    ! conversion
    conversion $U%conversion.P1192FLPLN.extmail.xyz.com@conversion-daemon
    conversion.P1192FLPLN.extmail.xyz.com $U%conversion.P1192FLPLN.extmail.xyz.com@conversion-daemon
    ! bitbucket
    bitbucket $U%bitbucket.P1192FLPLN.extmail.xyz.com@bitbucket-daemon
    bitbucket.P1192FLPLN.extmail.xyz.com $U%bitbucket.P1192FLPLN.extmail.xyz.com@bitbucket-daemon
    ! deleted
    deleted-daemon $U%$H@deleted-daemon
    .deleted-daemon $U%$H@deleted-daemon
    ! inactive
    inactive-daemon $U%$H@inactive-daemon
    .inactive-daemon $U%$H@inactive-daemon
    ! hold
    hold-daemon $U%$H@hold-daemon
    .hold-daemon $U%$H@hold-daemon
    ! part II : channel blocks
    defaults notices 1 2 4 7 copywarnpost copysendpost postheadonly noswitchchannel immnonurgent maxjobs 7 logging defaulthost extmail.xyz.com extmail.xyz.com
    ! delivery channel to local /var/mail store
    l subdirs 20 viaaliasrequired maxjobs 7
    P1192FLPLN.extmail.xyz.com
    ! ims-ms
    ims-ms defragment subdirs 20 notices 1 7 14 21 28 backoff "pt5m" "pt10m" "pt30m" "pt1h" "pt2h" "pt4h" maxjobs 2 pool IMS_POOL fileinto $U+$S@$D
    ims-ms-daemon
    ! native
    native defragment subdirs 20 maxjobs 1
    native-daemon
    ! pipe
    pipe single defragment subdirs 20
    pipe-daemon
    ! tcp_local
    tcp_local smtp mx single_sys remotehost inner switchchannel identnonenumeric subdirs 20 maxjobs 7 pool SMTP_POOL maytlsserver maysaslserver saslswitchchannel tcp_auth missingrecipientpolicy 0 loopcheck daemon 10.8.51.126
    tcp-daemon
    ! tcp_intranet
    tcp_intranet smtp mx single_sys subdirs 20 dequeue_removeroute maxjobs 7 pool SMTP_POOL maytlsserver allowswitchchannel saslswitchchannel tcp_auth missingrecipientpolicy 4
    tcp_intranet-daemon
    ! tcp_submit
    tcp_submit submit smtp mx single_sys mustsaslserver maytlsserver missingrecipientpolicy 4
    tcp_submit-daemon
    ! tcp_auth
    tcp_auth smtp mx single_sys mustsaslserver missingrecipientpolicy 4
    tcp_auth-daemon
    ! tcp_tas
    tcp_tas smtp mx single_sys allowswitchchannel mustsaslserver maytlsserver deliveryflags 2
    tcp_tas-daemon
    ! tcp_lmtpss (LMTP server - store)
    !tcp_lmtpss lmtp flagtransfer
    !tcp_lmtpss-daemon
    ! tcp_lmtpcs (LMTP client - store)
    !tcp_lmtpcs defragment lmtp port 225 nomx single_sys subdirs 20 maxjobs 7 pool SMTP_POOL dequeue_removeroute
    !lmtpcs-daemon
    ! reprocess
    reprocess
    reprocess-daemon
    ! process
    process
    process-daemon
    ! defragment
    defragment
    defragment-daemon
    ! conversion
    conversion
    conversion-daemon
    ! bitbucket
    bitbucket
    bitbucket-daemon
    ! deleted
    deleted
    deleted-daemon
    ! inactive
    inactive
    inactive-daemon
    ! hold
    hold
    hold-daemonand mappings file..
    ! MTA mappings file
    !  for access control and other table lookups
    FROM_ACCESS
    ! Entries to block certain submissions normally would be inserted here,
    ! above the ntended-to-be-final entries that while permitting submission,
    ! merely disable any potential "vacation" effect.
    ! The following entries disable Sieve "vacation" action on lists sorts
    ! of addresses, as recommended by the Sieve "vacation" extension draft.
       *|SMTP*|*|*|MAILER-DAEMON@*|*    $!$Y
       *|SMTP*|*|*|LISTSERVE*@|*        $!$Y
       *|SMTP*|*|*|majordomo@*|*        $!$Y
       *|SMTP*|*|*|*-request@*|*        $!$Y
       *|SMTP*|*|*|*-owner@*|*          $!$Y
       *|SMTP*|*|*|owner-*@*|*          $!$Y
    PORT_ACCESS
      *|*|*|*|*  $C$|INTERNAL_IP;$3|$Y$E
      *  $YEXTERNAL
    INTERNAL_IP
      $(10.8.55.49/24)  $Y
      $(10.8.51.125)  $Y
      $(10.8.51.126)  $Y
      127.0.0.1  $Y
      *  $N
    ORIG_SEND_ACCESS
      tcp_local|*|tcp_local|*  $N$D30|Relaying$ not$ allowed
      tcp_*|*|native|*  $N
      tcp_*|*|hold|*  $N
      tcp_*|*|pipe|*  $N
      tcp_*|*|ims-ms|*  $N
    ! Block "external" submissions of explicitly source-routed "internal" addresses
      tcp_local|*|tcp_intranet|@*:*.*   $N$D30|Explicit$ routing$ not$ allowed
      tcp_local|*|tcp_intranet|*$%*@*   $N$D30|Explicit$ routing$ not$ allowed
      tcp_local|*|tcp_intranet|*.*!*@*  $N$D30|Explicit$ routing$ not$ allowed
      tcp_local|*|tcp_intranet|"*@*"@*  $N$D30|Explicit$ routing$ not$ allowed
    SEND_ACCESS
      tcp_*|*|*|*@[127.*]  $X5.1.2|$NBad$ destination$ system
      tcp_*|*|*|*@localhost.*  $X5.1.2|$NBad$ destination$ system
      tcp_*|*|*|*@example.com  $X5.1.2|$NBad$ destination$ system
      tcp_*|*|*|*@example.net  $X5.1.2|$NBad$ destination$ system
      tcp_*|*|*|*@example.org  $X5.1.2|$NBad$ destination$ system
      tcp_*|*|*|*@*.test  $X5.1.2|$NBad$ destination$ system
      tcp_*|*|*|*@*.example  $X5.1.2|$NBad$ destination$ system
      tcp_*|*|*|*@*.invalid  $X5.1.2|$NBad$ destination$ system
      tcp_*|*|*|*@*.localhost  $X5.1.2|$NBad$ destination$ system
    <IMTA_TABLE:mappings.localewe are able to receive mails from the gateway, but when using uwc to send the mail, the mail doesnt hit the gateway. trying a telnet from the messaging server to the gateway, works perfectly.
    thanks in advance.

  • Which bit instructs msgsrv to log deposition of messages in mailboxes?

    I hope this is a short question with a one-liner answer:
    I want to keep a log of all messages received by the Messaging Server,
    including common headers like from, to, subject, size - pretty much
    like sendmail logs.
    I believe this mode can be toggled on by a bit in LOG_CONNECTION or
    something similar, but I didn't yet find what exactly should be set.
    At the moment mail.log_current does log connections from localhost and
    remote smtp relays, but that's just it - a couple of IP addresses and ports,
    i.e.:
    12-Mar-2009 06:35:01.32 tcp_local    +            O TCP|127.0.0.1|25|127.0.0.1|49050 SMTP
    12-Mar-2009 06:35:01.32 tcp_local    +            C TCP|127.0.0.1|25|127.0.0.1|49050 SMTP
    12-Mar-2009 06:35:01.32 tcp_submit   +            O TCP|127.0.0.1|587|127.0.0.1|49051 SMTP
    12-Mar-2009 06:35:01.32 tcp_submit   +            C TCP|127.0.0.1|587|127.0.0.1|49051 SMTPAlmost all of the detail I want is there in log lines for messages relayed from
    this Messaging Server to a remote relay (they seem to include both messages
    initiated by this server's users and messages created via Forward to remote
    mailbox), i.e.:
    11-Mar-2009 11:24:34.16 tcp_local    +            O TCP|127.0.0.1|25|127.0.0.1|39285 SMTP
    11-Mar-2009 11:24:34.23 tcp_intranet tcp_local    EE 14 [email protected] rfc822;[email protected] [email protected] mailsrv domain.ru ([127.0.0.1]) ''  TCP|127.0.0.1|25|127.0.0.1|39285
    11-Mar-2009 11:24:34.23 tcp_local    +            C TCP|127.0.0.1|25|127.0.0.1|39285 SMTP
    # I guess at this point the message was received from webmail
    # then queued to a remote server and processed again while it
    # was relayed to our internet mailhub
    11-Mar-2009 11:24:34.52 tcp_local    -            O TCP|mail.srv.ip.addr|39288|mail.relay.ip.addr|25 SMTP/relay.domain.ru/relay.domain.ru
    11-Mar-2009 11:24:34.79 tcp_local                 DE 15 [email protected] rfc822;[email protected] [email protected] mailsrv relay.domain.ru '' dns;relay.domain.ru (TCP|mail.srv.ip.addr|39288|mail.relay.ip.addr|25) (relay.domain.ru ESMTP Sendmail 8.14.3/8.14.3; Wed, 11 Mar 2009 11:24:34 +0300 [MSK]) smtp;250 2.1.5 <[email protected]>... Recipient ok TCP|mail.srv.ip.addr|39288|mail.relay.ip.addr|25
    11-Mar-2009 11:24:34.79 tcp_local    -            C TCP|mail.srv.ip.addr|39288|mail.relay.ip.addr|25 SMTP/relay.domain.ru/relay.domain.ru
    ...I want to have similar entries for messages received by this server both
    from remote servers and from this server itself to its users as sole
    recipients.
    If possible, I'd also like to log the message sizes in order to respond to
    questions like "did my big attachment come through?"
    # imsimta version                                                                                                                                     
    Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 64bit)
    libimta.so 6.3-7.04 (built 18:29:00, Sep 26 2008; 64bit)
    SunOS sunmail 5.10 Generic_127112-07 i86pc i386 i86pcCurrent option.dat:
    ! MTA configuration options
    ! This sets the alias resolution order
    !   8 = Use ALIAS_URL0
    !   7 = Use ALIAS_URL1
    !   6 = Use ALIAS_URL2
    !   4 = Use the alias file
    ALIAS_MAGIC=4876
    ALIAS_URL0=ldap:///$V?*?sub?$R
    ! REVERSE mapping suggested here: http://forums.sun.com/thread.jspa?messageID=10610989
    ! Bits described here: http://docs.sun.com/app/docs/doc/819-4429/6n6j50mmo?a=view#fvkaz
    !USE_REVERSE_DATABASE=4
    USE_REVERSE_DATABASE=13
    REVERSE_URL=ldap:///$V?$N?sub?$R
    USE_DOMAIN_DATABASE=0
    ! MISSING_RECIPIENT_POLICY controls how illegal headers that don't
    ! contain any To:, Cc:, or Bcc: fields are handled for channels that
    ! do not have their own explicit missingrecipientpolicy keyword set.
    ! The default of 0 means that the envelope addresses are used to
    ! construct a valid To: header field. This default behavior tends
    ! to be especially appropriate for the tcp_local channel.
    MISSING_RECIPIENT_POLICY=0
    MISSING_RECIPIENT_GROUP_TEXT=Undisclosed recipients
    ALIAS_DOMAINS=6
    LDAP_SCHEMALEVEL=2
    VACATION_TEMPLATE=file:///opt/SUNWmsgsr/messaging64/data/vacation/$3I/$1U/$2U/$U.vac
    ! Limit message size; default block = 1024b
    BLOCK_LIMIT=21000
    ! http://wikis.sun.com/display/CommSuite/Performance+Tuning+DNS+Realtime+BlockLists+(RBL)+Lookups
    ! Log if a connection is dropped due to spam RBL
    !!!LOG_CONNECTION=7
    ! http://forums.sun.com/thread.jspa?messageID=10605405
    ! ...also log more details on timing and password attempts
    LOG_CONNECTION=167
    LOG_USERNAME=1
    ! debugging sieve filters - actions logged in the mail.log_current file
    LOG_FILTER=1
    ! --20081205: debugging SMTP dialogs, see http://forums.sun.com/thread.jspa?threadID=5352689
    ! MM_DEBUG=9Thanks,
    //Jim

    JimKlimov wrote:
    I hope this is a short question with a one-liner answer:
    I want to keep a log of all messages received by the Messaging Server,
    including common headers like from, to, subject, size - pretty much
    like sendmail logs.You can log specific email headers as per the following:
    http://msg.wikidoc.info/index.php/Log_email_header
    "size" is not an email header.
    I believe this mode can be toggled on by a bit in LOG_CONNECTION or
    something similar, but I didn't yet find what exactly should be set.
    At the moment mail.log_current does log connections from localhost and
    remote smtp relays, but that's just it - a couple of IP addresses and ports,
    i.e.:
    12-Mar-2009 06:35:01.32 tcp_local    +            O TCP|127.0.0.1|25|127.0.0.1|49050 SMTP
    12-Mar-2009 06:35:01.32 tcp_local    +            C TCP|127.0.0.1|25|127.0.0.1|49050 SMTP
    12-Mar-2009 06:35:01.32 tcp_submit   +            O TCP|127.0.0.1|587|127.0.0.1|49051 SMTP
    12-Mar-2009 06:35:01.32 tcp_submit   +            C TCP|127.0.0.1|587|127.0.0.1|49051 SMTP
    These entries appear to be msprobe monitoring connections and disconnections -- not email delivery attempts. You will see the same entry if you telnet to port 25, then close the connection.
    Almost all of the detail I want is there in log lines for messages relayed from
    this Messaging Server to a remote relay (they seem to include both messages
    initiated by this server's users and messages created via Forward to remote
    mailbox), i.e.:
    11-Mar-2009 11:24:34.16 tcp_local    +            O TCP|127.0.0.1|25|127.0.0.1|39285 SMTP
    11-Mar-2009 11:24:34.23 tcp_intranet tcp_local    EE 14 [email protected] rfc822;[email protected] [email protected] mailsrv domain.ru ([127.0.0.1]) ''  TCP|127.0.0.1|25|127.0.0.1|39285
    11-Mar-2009 11:24:34.23 tcp_local    +            C TCP|127.0.0.1|25|127.0.0.1|39285 SMTP
    # I guess at this point the message was received from webmail
    # then queued to a remote server and processed again while it
    # was relayed to our internet mailhub
    11-Mar-2009 11:24:34.52 tcp_local    -            O TCP|mail.srv.ip.addr|39288|mail.relay.ip.addr|25 SMTP/relay.domain.ru/relay.domain.ru
    11-Mar-2009 11:24:34.79 tcp_local                 DE 15 [email protected] rfc822;[email protected] [email protected] mailsrv relay.domain.ru '' dns;relay.domain.ru (TCP|mail.srv.ip.addr|39288|mail.relay.ip.addr|25) (relay.domain.ru ESMTP Sendmail 8.14.3/8.14.3; Wed, 11 Mar 2009 11:24:34 +0300 [MSK]) smtp;250 2.1.5 <[email protected]>... Recipient ok TCP|mail.srv.ip.addr|39288|mail.relay.ip.addr|25
    11-Mar-2009 11:24:34.79 tcp_local    -            C TCP|mail.srv.ip.addr|39288|mail.relay.ip.addr|25 SMTP/relay.domain.ru/relay.domain.ru
    ...I want to have similar entries for messages received by this server both
    from remote servers and from this server itself to its users as sole
    recipients.If you have added the "logging" keyword to the defaults line in your imta.cnf file then every email that passes through the MTA, regardless of whether it is destined for remote (tcp_intranet/tcp_local) or internal (ims-ms) will be logged.
    If possible, I'd also like to log the message sizes in order to respond to
    questions like "did my big attachment come through?"The size is already recorded. It is the argument after the "EE" and "DE". So in your above example the enqueued message was 14KB, and the dequeued message size was 15KB. There is a size difference because the email will increase in size during transit (additional Received: header etc.).
    Regards,
    Shane.

Maybe you are looking for

  • HP 6510 won't print black on page (dumps it on the right, image inside)

    Hello everybody, For the past couple of days my HP 6510 printer no longer prints black ink on the page. I've already searched the forums to look for an answer and have tried pretty much everything, as well as going through the whole troubleshooting p

  • Can't connect iPhone or iPad to Airport Extreme

    I just got a new modem/wireless router from AT&T U-Verse (it's a 2Wire 020). I needed to extend the range, since the signal doesn't reach to one part of the house. I set my Airport Extreme up as a bridge, and it's working perfectly – in fact, I'm usi

  • Photo Transfer from PC to Apple TV

    How do I transfer photos from my PC (windows vista) to Apple TV. Apple TV only seems to recognize photos in Photo Stream and I can not find a way to put existing photos into Photo Stream (only new ones taken after photo stream was set-up).

  • Import files without a computer

    I have a DSLR camera with an SD (or micro SD) card for media. How do I import my picture files to the Playbook without the use of a computer. Is there a card reader or someother way to do this?

  • DivX upgrade corrupted quicktime AVI playing ability

    I recently upgraded my DivX player and converter, after doing this my Quicktime player stopped playing AVI files. which is probably a good 85% of my videos and movies which i cant get to reformat to Mp4, MPEG or any of the other formats that it will