Download Symantec™ Messaging Gateway 9.5 Command Line Reference Guide
Transcript
Command reference mta-control ■ export-msg-by-id queue-ID [url] – Export the message with the given queue-ID from the queue and save it to the specified URL. If you do not specify a URL, the message data is displayed on the screen. If you do not specify the FTP password, mta-control prompts you for the password. If you specify a path that ends with '/', Symantec Messaging Gateway stores the file in that location using a default file name. Otherwise, Symantec Messaging Gateway stores the file with the file name that you specified in the path. The URL syntax is as follows: scp://'user'\@host/path (user is prompted for password) ftp://'user':'password'\@host[:port]/path ftp://'user'\@host[:port]/path Put a double-quote character before and after the URL. If any part of the URL contains special characters, such as full or double quotes, put a backslash before each special character. ■ query-queue – Query the message queue. The following optional parameters are accepted: ■ sender_match=perl regexp ■ rcpt_match=perl regexp ■ deferred - selects the messages that are deferred ■ include_subject ■ start=N ■ limit=N ■ format=neat|xml The parameters sender_match, rcpt_match and deferred are logically ANDed together if present. The intermediate result set after applying these matches is sorted by date, and then the start and limit are applied: \$start messages are skipped and then \$limit messages are returned. The default is to show all messages in 'neat' format, which is meant to be human readable. ■ bad-msg-list – List the times and IDs of messages in the bad message queue. The queue is either inbound or outbound. ■ bad-msg-export queue-ID [url] – Export or display the message. See export-msg-by-id for URL format. To display the message on the screen, type mta-control queue bad-msg-export queue-ID. Specify the URL as described for the export-msg-by-id component. ■ bad-msg-delete queue-ID – Delete the message. 69