Difference between revisions of "Lmtpinject"
m (Adding Article Footer and Categories) |
|||
Line 1: | Line 1: | ||
*lmtp will only deliver mail to the inbox. You could try to create a filter on the user's mailbox first that moves all mail from the user to the sent folder. | *lmtp will only deliver mail to the inbox. You could try to create a filter on the user's mailbox first that moves all mail from the user to the sent folder. | ||
+ | |||
+ | usage: zmlmtpinject -r <recip1> [recip2 ...] -s <sender> [options] | ||
+ | <file1 [file2 ...] | -d <dir>> | ||
+ | -a,--address <arg> lmtp server (default localhost) | ||
+ | -d,--directory <arg> message file directory | ||
+ | -h,--help display usage information | ||
+ | -N,--every <arg> report progress after every N messages (default | ||
+ | 100) | ||
+ | --noValidation don't validate file content | ||
+ | -p,--port <arg> lmtp server port (default 7025) | ||
+ | -q,--quiet don't print status | ||
+ | -r,--recipient <arg> envelope recipients (rcpt to). This option | ||
+ | accepts multiple arguments, so it can't be last if | ||
+ | a list of input files is used. | ||
+ | -s,--sender envelope sender (mail from) | ||
+ | --smtp use SMTP protocol instead of LMTP | ||
+ | -T,--trace trace server/client traffic | ||
+ | -t,--threads <arg> number of worker threads (default 1) | ||
+ | -v,--verbose print detailed delivery status | ||
+ | |||
+ | |||
+ | |||
+ | The following command. '-r' is the receiver, and '-s' is the sender. The sender can be anything, and doesn't need to exist on the server: | ||
+ | |||
+ | '''# su - zimbra | ||
+ | $ zmlmtpinject -r test@example.com -s test2@example.com -T -v /tmp/testemail | ||
+ | |||
+ | ''' | ||
+ | |||
+ | |||
** http://www.zimbra.com/forums/administrators/2199-about-zmlmtpinject-print.html | ** http://www.zimbra.com/forums/administrators/2199-about-zmlmtpinject-print.html | ||
Revision as of 06:31, 16 April 2014
- lmtp will only deliver mail to the inbox. You could try to create a filter on the user's mailbox first that moves all mail from the user to the sent folder.
usage: zmlmtpinject -r <recip1> [recip2 ...] -s <sender> [options]
<file1 [file2 ...] | -d <dir>> -a,--address <arg> lmtp server (default localhost) -d,--directory <arg> message file directory -h,--help display usage information -N,--every <arg> report progress after every N messages (default 100) --noValidation don't validate file content -p,--port <arg> lmtp server port (default 7025) -q,--quiet don't print status -r,--recipient <arg> envelope recipients (rcpt to). This option accepts multiple arguments, so it can't be last if a list of input files is used. -s,--sender envelope sender (mail from) --smtp use SMTP protocol instead of LMTP -T,--trace trace server/client traffic -t,--threads <arg> number of worker threads (default 1) -v,--verbose print detailed delivery status
The following command. '-r' is the receiver, and '-s' is the sender. The sender can be anything, and doesn't need to exist on the server:
# su - zimbra $ zmlmtpinject -r test@example.com -s test2@example.com -T -v /tmp/testemail