Hi,
I have a need to test network throughput for SMTP traffic on Fedora and I'd like to configure postfix to accept incoming e-mail from clients and drop them. How can I go about that?
TIA, Tommy
On Tue, Aug 14, 2012 at 08:51:25PM -0700, Tommy Pham wrote:
I have a need to test network throughput for SMTP traffic on Fedora and I'd like to configure postfix to accept incoming e-mail from clients and drop them. How can I go about that?
A postfix mailing list would be more appropriate?
In any case, look at man 5 access.
In /etc/postfix/access: 1.2.3.4 DISCARD message go bye
1.2.3.4. being the IP address of the client (see the man page for loads of alternatives)
then: # cd /etc/postfix # postmap access
You might need to configure postfix to look at that access file.
Something like the following in /etc/postfix/main.cf: smtpd_client_restrictions = check_client_access hash:/etc/postfix/access,
On Tue, 2012-08-14 at 20:51 -0700, Tommy Pham wrote:
I'd like to configure postfix to accept incoming e-mail from clients and drop them.
By "drop," do you mean discard them; or to accept all, then filter and drop them into appropriate mail spools? The term is ambiguous in your sentence.
For what it's worth, if you are discarding mail, then it's generally better not to accept and discard, but to refuse to accept the mail. If you're discovered to accept mail, chances are spammers will send it. That could be thousands per hour. It's also confusing for legit clients when mail seems to work, but doesn't actually work.
I can't directly answer your question, as I'm not a postfix user, but I think you need to clearly define your need, so someone else can give you a good answer.
@Olav & @Tim,
Thanks for the replies. I figured out how to do what I need the day after I sent the e-mail by looking at the configuration files and did some tests. What I wanted to is test the network throughput of the servers. So I needed the postfix to actually accept the e-mails as if they're legitimate but discard them and not store them because I don't want other things (disk IO, dependent processes such storage mechanism, etc.) that could possibly interfere with my test for max throughput of network traffic. I was trying the gauge the e-mail traffic in VMs.
Regards, Tommy