SEARCH
TOOLBOX
LANGUAGES
Postfix

Postfix

From GarrettHoneycutt

Jump to: navigation, search

Contents

Postfix

Cheat Sheet

General commands

show config settings

# postconf

List the names of all supported lookup table types (ldap, nis, sdbm, regexp, etc.)

# postconf -m

Re-read config files

# postfix reload

Queue commands

show queue contents

# mailq

examine queue file 72B053FE13

# postcat -q 72B053FE13

request a queue flush

# postqueue -f

delete message with queue id 7EA4B3FE06 from queue

# postsuper -d 7EA4B3FE06

delete all messages in the active queue

# postsuper -d ALL active

delete all messages in all queues

# postsuper -d ALL

Testing commands

startup smtp-sink with a counter and connection queue length of 10000

# smtp-sink -c sinkserver.yourhost.com:25 10000

send 500 1k messages to localhost with a counter

# smtp-source -c -m 500 -l 1024 -f blagh@blagh.com -t you@yourhost.com localhost:25