Author:
erics, December 17th, 2010
Below info copied from http://www.postfix.org/SASL_README.html#server_sasl_enable Make sure saslauthd is running first. Edit /etc/postfix/main.cf: smtpd_sasl_type = cyrus smtpd_sasl_auth_enable = yes broken_sasl_auth_clients = yes smtpd_sasl_security_options = noanonymous smtpd_sasl_authenticated_header = yes smtpd_recipient_restrictions = permit_sasl_authenticated {other options that were already there} # postfix reload To test (you supply the items in bold): % telnet server.example.com 25 … 220 server.example.com […]
Categories: How-To's, Technology Tags: Auth, Authenticate, Authentication, Email, gen-auth, howto, Plain, PostFix, Relay, SASL, saslauthd, tips
| No comments
Author:
erics, December 17th, 2010
Edit /etc/postfix/access and add entries like: baduser@baddomain.com 550 No such user here Then run the following command: postmap /etc/postfix/access Edit /etc/postfix/main.cf: smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/access, {any other options already there…} Then run the following command: postfix reload
Categories: How-To's, Technology Tags: Access, Email, main.cf, PostFix, Postmap, postmap access, Reject, Reject Email
| No comments
Author:
erics, December 13th, 2010
Flush the mail queue: # postfix flush OR # postfix -f View the mail queue: # mailq Delete all mail from the queue: # postsuper -d ALL Delete all mails in the deferred queue: # postsuper -d ALL deferred
Categories: How-To's, Technology Tags: Email, Flush, mail, Mail Queue, Mailq, PostFix, postsuper, Q, Queue
| No comments
Author:
erics, November 27th, 2010
Modify /etc/postfix/master.cf, and add one line per port. The example below shows the original smtp line along with a sample new line. 25 inet n – – – – smtpd 2525 inet n – – – – smtpd Make sure to open the port in your firewall… Another interesting solution I found was to use […]
Categories: How-To's, Technology Tags: Email, master.cf, Multiple Ports, Port, PostFix, SMTP
| No comments
Author:
erics, August 26th, 2010
[code]sudo postsuper -d ALL[/code]
Categories: How-To's, Technology Tags: Email, macosx, Mailq
| No comments
Author:
erics, December 18th, 2009
[perl] use strict; use Email::Sender::Simple qw(sendmail); use Email::Simple; use Email::Simple::Creator; my $email = Email::Simple->create( header => [ To => ‘"Eric" <eric@example_human.com>’, From => ‘"Quota Monitor" <quotamon@example_web_server.com>’, Subject => "Automated Message from QuotaMon", ], body => "User foo is over quota\n", ); sendmail($email); [/perl]
Categories: How-To's, Technology Tags: Email, OOPerl, perl
| No comments