Postfix Queue Problems (mail is stuck in queue)
Dear List, I am having problems with postfix where email gets stuck in the queue for no reason. Nothing has changed recently on the mail server and out of the blue postfix created this problem where emails will either be delivered just fine or they will end up in the queue and will not be delivered until manual action is taken. I have searched through the lists on the internet and tried several things including upgrading postfix to the latest version, run postfix flush, run postfix set-permissions etc but nothing seems to help. Even emails sent locally on the server end up in the queue and at this point I have no idea where to look anymore. I also do not see any specific errors in the maillog. a short version of mailq output: -Queue ID- --Size-- Arrival Time -Sender/Recipient--- 6C101C6BDB4*1334 Sat Jul 26 08:39:19 [EMAIL PROTECTED] [EMAIL PROTECTED] AA769C6BD62*1313 Sat Jul 26 08:31:27 [EMAIL PROTECTED] [EMAIL PROTECTED] B8EB9C6BDBD*1520 Sat Jul 26 08:36:21 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] EA2A7B01772*2483 Sat Jul 26 08:21:51 [EMAIL PROTECTED] [EMAIL PROTECTED] EC750C6BDC1*1062 Sat Jul 26 08:26:13 [EMAIL PROTECTED] papenburg.de [EMAIL PROTECTED] 55FBDC6BD79*3104 Sat Jul 26 08:22:51 [EMAIL PROTECTED] [EMAIL PROTECTED] 37EB0B010C916365 Fri Jul 25 23:35:01 MAILER-DAEMON (connect to myfirstmail.com[68.178.232.100]:25: Operation timed out) [EMAIL PROTECTED] -- 234 Kbytes in 100 Requests. output of: postqueue -vi B8EB9C6BDBD postqueue -vi B8EB9C6BDBD postqueue: dict_eval: const mail postqueue: dict_eval: const ipv4 postqueue: name_mask: ipv4 postqueue: dict_eval: const mail.EXAMPLE2.com postqueue: dict_eval: const EXAMPLE2.com postqueue: dict_eval: const Postfix postqueue: dict_eval: const postfix postqueue: dict_eval: const postfix postqueue: dict_eval: const maildrop postqueue: dict_eval: expand $myhostname -> mail.EXAMPLE2.com postqueue: dict_eval: expand $mydomain -> EXAMPLE2.com postqueue: dict_eval: const postqueue: dict_eval: const /usr/local/libexec/postfix postqueue: dict_eval: const /var/db/postfix postqueue: dict_eval: const /usr/local/sbin postqueue: dict_eval: const /var/spool/postfix postqueue: dict_eval: const pid postqueue: dict_eval: const all postqueue: dict_eval: const postqueue: dict_eval: const double-bounce postqueue: dict_eval: const nobody postqueue: dict_eval: const hash:/etc/aliases postqueue: dict_eval: const 20080216 postqueue: dict_eval: const 2.5.1 postqueue: dict_eval: const hash postqueue: dict_eval: const deferred, defer postqueue: dict_eval: const + postqueue: dict_eval: expand $mydestination -> mail.EXAMPLE2.com postqueue: dict_eval: expand $relay_domains -> mail.EXAMPLE2.com postqueue: dict_eval: const TZ MAIL_CONFIG LANG postqueue: dict_eval: const MAIL_CONFIG MAIL_DEBUG MAIL_LOGTAG TZ XAUTHORITY DISPLAY LANG=C postqueue: dict_eval: const host postqueue: dict_eval: const postqueue: dict_eval: const += postqueue: dict_eval: const -=+ postqueue: dict_eval: const debug_peer_list,fast_flush_domains,mynetworks,permit_mx_backup_networks,qmqpd_authorized_clients,relay_domains,smtpd_access_maps postqueue: dict_eval: const postqueue: dict_eval: const bounce postqueue: dict_eval: const cleanup postqueue: dict_eval: const defer postqueue: dict_eval: const pickup postqueue: dict_eval: const qmgr postqueue: dict_eval: const rewrite postqueue: dict_eval: const showq postqueue: dict_eval: const error postqueue: dict_eval: const flush postqueue: dict_eval: const verify postqueue: dict_eval: const trace postqueue: dict_eval: const postqueue: dict_eval: const 2 postqueue: dict_eval: const 100s postqueue: dict_eval: const 100s postqueue: dict_eval: const 100s postqueue: dict_eval: const 100s postqueue: dict_eval: const 3600s postqueue: dict_eval: const 3600s postqueue: dict_eval: const 5s postqueue: dict_eval: const 5s postqueue: dict_eval: const 1000s postqueue: dict_eval: const 1000s postqueue: dict_eval: const 10s postqueue: dict_eval: const 10s postqueue: dict_eval: const 1s postqueue: dict_eval: const 1s postqueue: dict_eval: const 1s postqueue: dict_eval: const 1s postqueue: dict_eval: const 500s postqueue: dict_eval: const 500s postqueue: dict_eval: const 18000s postqueue: dict_eval: const 18000s postqueue: dict_eval: const 1s postqueue: dict_eval: const 1s postqueue: name_mask: host postqueue: inet_addr_local: configured 2 IPv4 addresses postqueue: been_here: LOCALIP/32: 0 postqueue: been_here: 127.0.0.1/32: 0 postqueue: mynetworks: LOCALIP/32 127.0.0.1/32 postqueue: dict_eval: const LOCALIP/32 127.0.0.1/32 postqueue: dict
Re: Postfix Queue Problems (mail is stuck in queue)
* InterXS - L. Croese <[EMAIL PROTECTED]>: > Dear List, > > I am having problems with postfix where email gets stuck in the queue > for no reason. > Nothing has changed recently on the mail server and out of the blue > postfix created this problem where emails will either be delivered > just fine or they will end up in the queue and will not be delivered > until manual action is taken. What's in the log for those queueids? > -Queue ID- --Size-- Arrival Time -Sender/Recipient--- > 6C101C6BDB4*1334 Sat Jul 26 08:39:19 [EMAIL PROTECTED] > [EMAIL PROTECTED] Active > AA769C6BD62*1313 Sat Jul 26 08:31:27 > [EMAIL PROTECTED] > [EMAIL PROTECTED] Active > B8EB9C6BDBD*1520 Sat Jul 26 08:36:21 [EMAIL PROTECTED] > [EMAIL PROTECTED] > [EMAIL PROTECTED] Active > postconf output: Show "postconf -n" output -- Ralf Hildebrandt ([EMAIL PROTECTED]) [EMAIL PROTECTED] Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de Most people use Windows. Is this a reason to run Windows? Flies love shit. A million flies can't be wrong, can they?
Re: Postfix Queue Problems (mail is stuck in queue)
* Ralf Hildebrandt <[EMAIL PROTECTED]>: > * InterXS - L. Croese <[EMAIL PROTECTED]>: > > Dear List, > > > > I am having problems with postfix where email gets stuck in the queue > > for no reason. > > Nothing has changed recently on the mail server and out of the blue > > postfix created this problem where emails will either be delivered > > just fine or they will end up in the queue and will not be delivered > > until manual action is taken. > > What's in the log for those queueids? > > > -Queue ID- --Size-- Arrival Time -Sender/Recipient--- > > 6C101C6BDB4*1334 Sat Jul 26 08:39:19 [EMAIL PROTECTED] > > [EMAIL PROTECTED] > > Active And don'T replace the real domains. -- Ralf Hildebrandt ([EMAIL PROTECTED]) [EMAIL PROTECTED] Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de To correct all M$ Windows(tm) problems, only one small command is necessary: > format C: (then press y) Bingo! Your Windows(tm) computer is now secure, stable, and every bit as useful as before.
Re: Postfix Queue Problems (mail is stuck in queue)
Hi Ralph, Here is one, it only got delivered after i did a postfix stop and postfix start. cat maillog | grep B8EB9C6BDBD Jul 26 08:42:48 mail postfix/pickup[42464]: B8EB9C6BDBD: uid=125 from=<[EMAIL PROTECTED]> orig_id=78240C6BDAC Jul 26 08:42:48 mail postfix/cleanup[44389]: B8EB9C6BDBD: message-id=<[EMAIL PROTECTED]> Jul 26 08:42:48 mail postfix/qmgr[42465]: B8EB9C6BDBD: from=<[EMAIL PROTECTED]>, size=1520, nrcpt=2 (queue active) Jul 26 06:59:53 mail postfix/postqueue[44795]: flush_send_file: queue_id B8EB9C6BDBD Jul 26 06:59:53 mail postfix/postqueue[44795]: send attr queue_id = B8EB9C6BDBD Jul 26 06:59:53 mail postfix/postqueue[44795]: flush_send_file: queue_id B8EB9C6BDBD status 0 Jul 26 09:13:33 mail postfix/qmgr[45138]: B8EB9C6BDBD: from=<[EMAIL PROTECTED]>, size=1520, nrcpt=2 (queue active) Jul 26 09:15:22 mail postfix/qmgr[45456]: B8EB9C6BDBD: from=<[EMAIL PROTECTED]>, size=1520, nrcpt=2 (queue active) Jul 26 09:15:49 mail postfix/qmgr[45537]: B8EB9C6BDBD: from=<[EMAIL PROTECTED]>, size=1520, nrcpt=2 (queue active) Jul 26 09:15:50 mail postfix/virtual[45544]: B8EB9C6BDBD: to=<[EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>, relay=virtual, delay=2369, delays=2368/0.59/0/0.75, dsn=2.0.0, status=sent (delivered to maildir) Jul 26 09:15:52 mail postfix/virtual[45544]: B8EB9C6BDBD: to=<[EMAIL PROTECTED]>, relay=virtual, delay=2371, delays=2368/0.59/0/2.2, dsn=2.0.0, status=sent (delivered to maildir) Jul 26 09:15:52 mail postfix/qmgr[45537]: B8EB9C6BDBD: removed # postconf -n alias_maps = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_alias_maps.cf broken_sasl_auth_clients = yes command_directory = /usr/local/sbin config_directory = /usr/local/etc/postfix daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix debug_peer_level = 2 disable_vrfy_command = yes html_directory = no invalid_hostname_reject_code = 450 mail_owner = postfix mailq_path = /usr/local/bin/mailq manpage_directory = /usr/local/man maps_rbl_reject_code = 450 mydestination = $myhostname mydomain = EXAMPLE2.com myhostname = mail.EXAMPLE2.com mynetworks_style = host myorigin = $mydomain newaliases_path = /usr/local/bin/newaliases non_fqdn_reject_code = 450 proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps queue_directory = /var/spool/postfix readme_directory = no recipient_delimiter = + sample_directory = /usr/local/etc/postfix sendmail_path = /usr/local/sbin/sendmail setgid_group = maildrop smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) smtpd_helo_required = yes smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = $myhostname smtpd_sasl_path = private/auth smtpd_sasl_security_options = noanonymous smtpd_sasl_type = dovecot unknown_local_recipient_reject_code = 550 virtual_alias_maps = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_alias_maps.cf virtual_mailbox_domains = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_domains_maps.cf virtual_mailbox_maps = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_maps.cf virtual_transport = virtual thanks for the quick reply Leon - Original Message - From: "Ralf Hildebrandt" <[EMAIL PROTECTED]> To: Sent: Saturday, July 26, 2008 9:49 AM Subject: Re: Postfix Queue Problems (mail is stuck in queue) * InterXS - L. Croese <[EMAIL PROTECTED]>: Dear List, I am having problems with postfix where email gets stuck in the queue for no reason. Nothing has changed recently on the mail server and out of the blue postfix created this problem where emails will either be delivered just fine or they will end up in the queue and will not be delivered until manual action is taken. What's in the log for those queueids? -Queue ID- --Size-- Arrival Time -Sender/Recipient--- 6C101C6BDB4*1334 Sat Jul 26 08:39:19 [EMAIL PROTECTED] [EMAIL PROTECTED] Active AA769C6BD62*1313 Sat Jul 26 08:31:27 [EMAIL PROTECTED] [EMAIL PROTECTED] Active B8EB9C6BDBD*1520 Sat Jul 26 08:36:21 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Active postconf output: Show "postconf -n" output -- Ralf Hildebrandt ([EMAIL PROTECTED]) [EMAIL PROTECTED] Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de Most people use Windows. Is this a reason to run Windows? Flies love shit. A million flies can't be wrong, can they?
Re: Postfix Queue Problems (mail is stuck in queue)
* InterXS - L. Croese <[EMAIL PROTECTED]>: > Hi Ralph, > > Here is one, it only got delivered after i did a postfix stop and postfix > start. Please post to the list > cat maillog | grep B8EB9C6BDBD > Jul 26 08:42:48 mail postfix/pickup[42464]: B8EB9C6BDBD: uid=125 > from=<[EMAIL PROTECTED]> orig_id=78240C6BDAC > Jul 26 08:42:48 mail postfix/cleanup[44389]: B8EB9C6BDBD: > message-id=<[EMAIL PROTECTED]> > Jul 26 08:42:48 mail postfix/qmgr[42465]: B8EB9C6BDBD: > from=<[EMAIL PROTECTED]>, size=1520, nrcpt=2 (queue active) > Jul 26 06:59:53 mail postfix/postqueue[44795]: flush_send_file: queue_id > B8EB9C6BDBD > Jul 26 06:59:53 mail postfix/postqueue[44795]: send attr queue_id = > B8EB9C6BDBD > Jul 26 06:59:53 mail postfix/postqueue[44795]: flush_send_file: queue_id > B8EB9C6BDBD status 0 > Jul 26 09:13:33 mail postfix/qmgr[45138]: B8EB9C6BDBD: > from=<[EMAIL PROTECTED]>, size=1520, nrcpt=2 (queue active) > Jul 26 09:15:22 mail postfix/qmgr[45456]: B8EB9C6BDBD: > from=<[EMAIL PROTECTED]>, size=1520, nrcpt=2 (queue active) > Jul 26 09:15:49 mail postfix/qmgr[45537]: B8EB9C6BDBD: > from=<[EMAIL PROTECTED]>, size=1520, nrcpt=2 (queue active) > Jul 26 09:15:50 mail postfix/virtual[45544]: B8EB9C6BDBD: > to=<[EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>, relay=virtual, > delay=2369, delays=2368/0.59/0/0.75, dsn=2.0.0, status=sent (delivered to > maildir) > Jul 26 09:15:52 mail postfix/virtual[45544]: B8EB9C6BDBD: > to=<[EMAIL PROTECTED]>, relay=virtual, delay=2371, > delays=2368/0.59/0/2.2, dsn=2.0.0, status=sent (delivered to maildir) > Jul 26 09:15:52 mail postfix/qmgr[45537]: B8EB9C6BDBD: removed > > # postconf -n > alias_maps = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_alias_maps.cf > broken_sasl_auth_clients = yes > command_directory = /usr/local/sbin > config_directory = /usr/local/etc/postfix > daemon_directory = /usr/local/libexec/postfix > data_directory = /var/db/postfix > debug_peer_level = 2 > disable_vrfy_command = yes > html_directory = no > invalid_hostname_reject_code = 450 > mail_owner = postfix > mailq_path = /usr/local/bin/mailq > manpage_directory = /usr/local/man > maps_rbl_reject_code = 450 > mydestination = $myhostname > mydomain = EXAMPLE2.com > myhostname = mail.EXAMPLE2.com > mynetworks_style = host > myorigin = $mydomain > newaliases_path = /usr/local/bin/newaliases > non_fqdn_reject_code = 450 > proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps > $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains > $relay_recipient_maps $relay_domains $canonical_maps > $sender_canonical_maps $recipient_canonical_maps $relocated_maps > $transport_maps $mynetworks $virtual_mailbox_limit_maps > queue_directory = /var/spool/postfix > readme_directory = no > recipient_delimiter = + > sample_directory = /usr/local/etc/postfix > sendmail_path = /usr/local/sbin/sendmail > setgid_group = maildrop > smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) > smtpd_helo_required = yes > smtpd_recipient_restrictions = permit_mynetworks, > permit_sasl_authenticated, reject_unauth_destination > smtpd_sasl_auth_enable = yes > smtpd_sasl_local_domain = $myhostname > smtpd_sasl_path = private/auth > smtpd_sasl_security_options = noanonymous > smtpd_sasl_type = dovecot > unknown_local_recipient_reject_code = 550 > virtual_alias_maps = > proxy:mysql:/usr/local/etc/postfix/mysql_virtual_alias_maps.cf > virtual_mailbox_domains = > proxy:mysql:/usr/local/etc/postfix/mysql_virtual_domains_maps.cf > virtual_mailbox_maps = > proxy:mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_maps.cf > virtual_transport = virtual > > thanks for the quick reply > > Leon > > > > - Original Message - From: "Ralf Hildebrandt" > <[EMAIL PROTECTED]> > To: > Sent: Saturday, July 26, 2008 9:49 AM > Subject: Re: Postfix Queue Problems (mail is stuck in queue) > > >> * InterXS - L. Croese <[EMAIL PROTECTED]>: >>> Dear List, >>> >>> I am having problems with postfix where email gets stuck in the queue >>> for no reason. >>> Nothing has changed recently on the mail server and out of the blue >>> postfix created this problem where emails will either be delivered >>> just fine or they will end up in the queue and will not be delivered >>> until manual action is taken. >> >> What's in the log for those queueids? >> >>> -Queue ID- --Size-- Arrival Time -Sender/Recipient--- >>> 6C101C6BDB4*1334 Sat Jul 26 08:39:19 [EMAIL PROTECTED] >>> [EMAIL PROTECTED] >> >> Active >> >>> AA769C6BD62*1313 Sat Jul 26 08:31:27 >>> [EMAIL PROTECTED] >>> [EMAIL PROTECTED] >> >> Active >> >>> B8EB9C6BDBD*1520 Sat Jul 26 08:36:21 [EMAIL PROTECTED] >>> [EMAIL PROTECTED] >>> [EMAIL PROTECTED] >> >> Active >> >>> postconf output: >> >> Show "postconf -n" output >> >> -- >> Ralf Hildebrandt ([
Re: Postfix Queue Problems (mail is stuck in queue)
Ah sorry, i sent the mail already before i saw your reply. here is it full domains listed mailcluster-01# cat maillog | grep B8EB9C6BDBD Jul 26 08:42:48 mailcluster-01 postfix/pickup[42464]: B8EB9C6BDBD: uid=125 from=<[EMAIL PROTECTED]> orig_id=78240C6BDAC Jul 26 08:42:48 mailcluster-01 postfix/cleanup[44389]: B8EB9C6BDBD: message-id=<[EMAIL PROTECTED]> Jul 26 08:42:48 mailcluster-01 postfix/qmgr[42465]: B8EB9C6BDBD: from=<[EMAIL PROTECTED]>, size=1520, nrcpt=2 (queue active) Jul 26 06:59:53 mailcluster-01 postfix/postqueue[44795]: flush_send_file: queue_id B8EB9C6BDBD Jul 26 06:59:53 mailcluster-01 postfix/postqueue[44795]: send attr queue_id = B8EB9C6BDBD Jul 26 06:59:53 mailcluster-01 postfix/postqueue[44795]: flush_send_file: queue_id B8EB9C6BDBD status 0 Jul 26 09:13:33 mailcluster-01 postfix/qmgr[45138]: B8EB9C6BDBD: from=<[EMAIL PROTECTED]>, size=1520, nrcpt=2 (queue active) Jul 26 09:15:22 mailcluster-01 postfix/qmgr[45456]: B8EB9C6BDBD: from=<[EMAIL PROTECTED]>, size=1520, nrcpt=2 (queue active) Jul 26 09:15:49 mailcluster-01 postfix/qmgr[45537]: B8EB9C6BDBD: from=<[EMAIL PROTECTED]>, size=1520, nrcpt=2 (queue active) Jul 26 09:15:50 mailcluster-01 postfix/virtual[45544]: B8EB9C6BDBD: to=<[EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>, relay=virtual, delay=2369, delays=2368/0.59/0/0.75, dsn=2.0.0, status=sent (delivered to maildir) Jul 26 09:15:52 mailcluster-01 postfix/virtual[45544]: B8EB9C6BDBD: to=<[EMAIL PROTECTED]>, relay=virtual, delay=2371, delays=2368/0.59/0/2.2, dsn=2.0.0, status=sent (delivered to maildir) Jul 26 09:15:52 mailcluster-01 postfix/qmgr[45537]: B8EB9C6BDBD: removed mailcluster-01# mailcluster-01# postconf -n alias_maps = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_alias_maps.cf broken_sasl_auth_clients = yes command_directory = /usr/local/sbin config_directory = /usr/local/etc/postfix daemon_directory = /usr/local/libexec/postfix data_directory = /var/db/postfix debug_peer_level = 2 disable_vrfy_command = yes html_directory = no invalid_hostname_reject_code = 450 mail_owner = postfix mailq_path = /usr/local/bin/mailq manpage_directory = /usr/local/man maps_rbl_reject_code = 450 mydestination = $myhostname mydomain = interxs-networks.net myhostname = mailcluster-01.interxs-networks.net mynetworks_style = host myorigin = $mydomain newaliases_path = /usr/local/bin/newaliases non_fqdn_reject_code = 450 proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps queue_directory = /var/spool/postfix readme_directory = no recipient_delimiter = + sample_directory = /usr/local/etc/postfix sendmail_path = /usr/local/sbin/sendmail setgid_group = maildrop smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) smtpd_helo_required = yes smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = $myhostname smtpd_sasl_path = private/auth smtpd_sasl_security_options = noanonymous smtpd_sasl_type = dovecot unknown_local_recipient_reject_code = 550 virtual_alias_maps = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_alias_maps.cf virtual_mailbox_domains = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_domains_maps.cf virtual_mailbox_maps = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_maps.cf virtual_transport = virtual mailcluster-01# - Original Message - From: "Ralf Hildebrandt" <[EMAIL PROTECTED]> To: Sent: Saturday, July 26, 2008 9:50 AM Subject: Re: Postfix Queue Problems (mail is stuck in queue) * Ralf Hildebrandt <[EMAIL PROTECTED]>: * InterXS - L. Croese <[EMAIL PROTECTED]>: > Dear List, > > I am having problems with postfix where email gets stuck in the queue > for no reason. > Nothing has changed recently on the mail server and out of the blue > postfix created this problem where emails will either be delivered > just fine or they will end up in the queue and will not be delivered > until manual action is taken. What's in the log for those queueids? > -Queue ID- --Size-- Arrival Time -Sender/Recipient--- > 6C101C6BDB4*1334 Sat Jul 26 08:39:19 [EMAIL PROTECTED] > [EMAIL PROTECTED] Active And don'T replace the real domains. -- Ralf Hildebrandt ([EMAIL PROTECTED]) [EMAIL PROTECTED] Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de To correct all M$ Windows(tm) problems, only one small command is necessary: format C: (then press y) Bingo! Your Windows(tm) computer is now secure, stable, and every bit as useful as before.
Re: Postfix Queue Problems (mail is stuck in queue)
* InterXS - L. Croese <[EMAIL PROTECTED]>: > cat maillog | grep B8EB9C6BDBD fgrep B8EB9C6BDBD maillog > Jul 26 08:42:48 mail postfix/pickup[42464]: B8EB9C6BDBD: uid=125 from=<[EMAIL > PROTECTED]> orig_id=78240C6BDAC > Jul 26 08:42:48 mail postfix/cleanup[44389]: B8EB9C6BDBD: message-id=<[EMAIL > PROTECTED]> > Jul 26 08:42:48 mail postfix/qmgr[42465]: B8EB9C6BDBD: from=<[EMAIL > PROTECTED]>, size=1520, nrcpt=2 (queue active) > Jul 26 09:13:33 mail postfix/qmgr[45138]: B8EB9C6BDBD: from=<[EMAIL > PROTECTED]>, size=1520, nrcpt=2 (queue active) > Jul 26 09:15:22 mail postfix/qmgr[45456]: B8EB9C6BDBD: from=<[EMAIL > PROTECTED]>, size=1520, nrcpt=2 (queue active) > Jul 26 09:15:49 mail postfix/qmgr[45537]: B8EB9C6BDBD: from=<[EMAIL > PROTECTED]>, size=1520, nrcpt=2 (queue active) > Jul 26 09:15:50 mail postfix/virtual[45544]: B8EB9C6BDBD: to=<[EMAIL > PROTECTED]>, orig_to=<[EMAIL PROTECTED]>, relay=virtual, > delay=2369, delays=2368/0.59/0/0.75, dsn=2.0.0, status=sent (delivered to > maildir) > Jul 26 09:15:52 mail postfix/virtual[45544]: B8EB9C6BDBD: to=<[EMAIL > PROTECTED]>, relay=virtual, delay=2371, > delays=2368/0.59/0/2.2, dsn=2.0.0, status=sent (delivered to maildir) > Jul 26 09:15:52 mail postfix/qmgr[45537]: B8EB9C6BDBD: removed Something is stopping and starting postfix or issuing a postfix reload (PID of qmgr is changing). Don't do that. egrep "(error|fatal):" maillog results in what? The config looks ok. -- Ralf Hildebrandt ([EMAIL PROTECTED]) [EMAIL PROTECTED] Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de SMTP is cute, fluffy and goes Woof! When well treated she wags her tail, licks your face and delivers your mail. When badly treated by spammers or people running exchange//etc she tends to bite back.
Re: Postfix Queue Problems (mail is stuck in queue)
mailcluster-01# fgrep B8EB9C6BDBD maillog Jul 26 08:42:48 mailcluster-01 postfix/pickup[42464]: B8EB9C6BDBD: uid=125 from=<[EMAIL PROTECTED]> orig_id=78240C6BDAC Jul 26 08:42:48 mailcluster-01 postfix/cleanup[44389]: B8EB9C6BDBD: message-id=<[EMAIL PROTECTED]> Jul 26 08:42:48 mailcluster-01 postfix/qmgr[42465]: B8EB9C6BDBD: from=<[EMAIL PROTECTED]>, size=1520, nrcpt=2 (queue active) Jul 26 06:59:53 mailcluster-01 postfix/postqueue[44795]: flush_send_file: queue_id B8EB9C6BDBD Jul 26 06:59:53 mailcluster-01 postfix/postqueue[44795]: send attr queue_id = B8EB9C6BDBD Jul 26 06:59:53 mailcluster-01 postfix/postqueue[44795]: flush_send_file: queue_id B8EB9C6BDBD status 0 Jul 26 09:13:33 mailcluster-01 postfix/qmgr[45138]: B8EB9C6BDBD: from=<[EMAIL PROTECTED]>, size=1520, nrcpt=2 (queue active) Jul 26 09:15:22 mailcluster-01 postfix/qmgr[45456]: B8EB9C6BDBD: from=<[EMAIL PROTECTED]>, size=1520, nrcpt=2 (queue active) Jul 26 09:15:49 mailcluster-01 postfix/qmgr[45537]: B8EB9C6BDBD: from=<[EMAIL PROTECTED]>, size=1520, nrcpt=2 (queue active) Jul 26 09:15:50 mailcluster-01 postfix/virtual[45544]: B8EB9C6BDBD: to=<[EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>, relay=virtual, delay=2369, delays=2368/0.59/0/0.75, dsn=2.0.0, status=sent (delivered to maildir) Jul 26 09:15:52 mailcluster-01 postfix/virtual[45544]: B8EB9C6BDBD: to=<[EMAIL PROTECTED]>, relay=virtual, delay=2371, delays=2368/0.59/0/2.2, dsn=2.0.0, status=sent (delivered to maildir) Jul 26 09:15:52 mailcluster-01 postfix/qmgr[45537]: B8EB9C6BDBD: removed mailcluster-01# mailcluster-01# egrep "(error|fatal):" maillog Jul 26 00:26:54 mailcluster-01 postfix/smtp[21455]: 87EBDB010A9: to=<[EMAIL PROTECTED]>, relay=mx.acb-architects.com[66.96.140.51]:25, delay=0.86, delays=0.05/0.01/0.65/0.14, dsn=5.1.1, status=bounced (host mx.acb-architects.com[66.96.140.51] said: 550 5.1.1 Host 91.142.66.12 error: B1.1.1 (in reply to RCPT TO command)) mailcluster-01# Leon - Original Message - From: "Ralf Hildebrandt" <[EMAIL PROTECTED]> To: Sent: Saturday, July 26, 2008 9:59 AM Subject: Re: Postfix Queue Problems (mail is stuck in queue) * InterXS - L. Croese <[EMAIL PROTECTED]>: cat maillog | grep B8EB9C6BDBD fgrep B8EB9C6BDBD maillog Jul 26 08:42:48 mail postfix/pickup[42464]: B8EB9C6BDBD: uid=125 from=<[EMAIL PROTECTED]> orig_id=78240C6BDAC Jul 26 08:42:48 mail postfix/cleanup[44389]: B8EB9C6BDBD: message-id=<[EMAIL PROTECTED]> Jul 26 08:42:48 mail postfix/qmgr[42465]: B8EB9C6BDBD: from=<[EMAIL PROTECTED]>, size=1520, nrcpt=2 (queue active) Jul 26 09:13:33 mail postfix/qmgr[45138]: B8EB9C6BDBD: from=<[EMAIL PROTECTED]>, size=1520, nrcpt=2 (queue active) Jul 26 09:15:22 mail postfix/qmgr[45456]: B8EB9C6BDBD: from=<[EMAIL PROTECTED]>, size=1520, nrcpt=2 (queue active) Jul 26 09:15:49 mail postfix/qmgr[45537]: B8EB9C6BDBD: from=<[EMAIL PROTECTED]>, size=1520, nrcpt=2 (queue active) Jul 26 09:15:50 mail postfix/virtual[45544]: B8EB9C6BDBD: to=<[EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>, relay=virtual, delay=2369, delays=2368/0.59/0/0.75, dsn=2.0.0, status=sent (delivered to maildir) Jul 26 09:15:52 mail postfix/virtual[45544]: B8EB9C6BDBD: to=<[EMAIL PROTECTED]>, relay=virtual, delay=2371, delays=2368/0.59/0/2.2, dsn=2.0.0, status=sent (delivered to maildir) Jul 26 09:15:52 mail postfix/qmgr[45537]: B8EB9C6BDBD: removed Something is stopping and starting postfix or issuing a postfix reload (PID of qmgr is changing). Don't do that. egrep "(error|fatal):" maillog results in what? The config looks ok. -- Ralf Hildebrandt ([EMAIL PROTECTED]) [EMAIL PROTECTED] Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de SMTP is cute, fluffy and goes Woof! When well treated she wags her tail, licks your face and delivers your mail. When badly treated by spammers or people running exchange//etc she tends to bite back.
Re: Postfix Queue Problems (mail is stuck in queue)
* InterXS - L. Croese <[EMAIL PROTECTED]>: > Jul 26 09:15:50 mailcluster-01 postfix/virtual[45544]: B8EB9C6BDBD: > to=<[EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>, relay=virtual, > delay=2369, delays=2368/0.59/0/0.75, dsn=2.0.0, status=sent (delivered to > maildir) That question is, what else is in the queue? Run "qshape" and "qsahpe deferred" If there's a lot of mail, things simply take a lot of time. -- Ralf Hildebrandt ([EMAIL PROTECTED]) [EMAIL PROTECTED] Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de I think I need a new T-shirt. On the front it will say "Of course, my version is somewhat outdated..." and on the back it will say "...but it is Debian's latest stable release."
Re: Postfix Queue Problems (mail is stuck in queue)
* InterXS - L. Croese <[EMAIL PROTECTED]>: > mailcluster-01# egrep "(error|fatal):" maillog > Jul 26 00:26:54 mailcluster-01 postfix/smtp[21455]: 87EBDB010A9: > to=<[EMAIL PROTECTED]>, > relay=mx.acb-architects.com[66.96.140.51]:25, delay=0.86, > delays=0.05/0.01/0.65/0.14, dsn=5.1.1, status=bounced (host > mx.acb-architects.com[66.96.140.51] said: 550 5.1.1 Host 91.142.66.12 > error: B1.1.1 (in reply to RCPT TO command)) OK, that's nothing special -- Ralf Hildebrandt ([EMAIL PROTECTED]) [EMAIL PROTECTED] Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de I work for an investment bank. I have dealt with code written by stock exchanges. I have seen how the computer systems that store your money are run. If I ever make a fortune, I will store it in gold bullion under my bed.
Re: Postfix Queue Problems (mail is stuck in queue)
* Ralf Hildebrandt <[EMAIL PROTECTED]>: > * InterXS - L. Croese <[EMAIL PROTECTED]>: > > > Jul 26 09:15:50 mailcluster-01 postfix/virtual[45544]: B8EB9C6BDBD: > > to=<[EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>, relay=virtual, > > delay=2369, delays=2368/0.59/0/0.75, dsn=2.0.0, status=sent (delivered to > > maildir) > > That question is, what else is in the queue? > Run "qshape" and "qsahpe deferred" qshape deferred -- Ralf Hildebrandt ([EMAIL PROTECTED]) [EMAIL PROTECTED] Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de To sysadmin or not to sysadmin... that is the question, whether tis nobler in the minde to suffer the slings and arrowes of outragious fortune, or climb to the top of the building with a fucking high-power rifle and scope.
Re: Postfix Queue Problems (mail is stuck in queue)
mailcluster-01# qshape T 5 10 20 40 80 160 320 640 1280 1280+ TOTAL 29 14 15 0 0 0 0 0 00 0 interxs.nl 29 14 15 0 0 0 0 0 00 0 mailcluster-01# mailcluster-01# qshape deferred T 5 10 20 40 80 160 320 640 1280 1280+ TOTAL 0 0 0 0 0 0 0 0 00 0 mailcluster-01# 60 seconds later mailcluster-01# qshape T 5 10 20 40 80 160 320 640 1280 1280+ TOTAL 52 31 21 0 0 0 0 0 00 0 interxs.nl 52 31 21 0 0 0 0 0 00 0 mailcluster-01# mailcluster-01# qshape deferred T 5 10 20 40 80 160 320 640 1280 1280+ TOTAL 0 0 0 0 0 0 0 0 00 0 mailcluster-01# for instance your last reply about qsahpe deferred -> qshape deferred is still in the queue Leon - Original Message - From: "Ralf Hildebrandt" <[EMAIL PROTECTED]> To: Sent: Saturday, July 26, 2008 10:05 AM Subject: Re: Postfix Queue Problems (mail is stuck in queue) * InterXS - L. Croese <[EMAIL PROTECTED]>: Jul 26 09:15:50 mailcluster-01 postfix/virtual[45544]: B8EB9C6BDBD: to=<[EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>, relay=virtual, delay=2369, delays=2368/0.59/0/0.75, dsn=2.0.0, status=sent (delivered to maildir) That question is, what else is in the queue? Run "qshape" and "qsahpe deferred" If there's a lot of mail, things simply take a lot of time. -- Ralf Hildebrandt ([EMAIL PROTECTED]) [EMAIL PROTECTED] Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de I think I need a new T-shirt. On the front it will say "Of course, my version is somewhat outdated..." and on the back it will say "...but it is Debian's latest stable release."
Re: Postfix Queue Problems (mail is stuck in queue)
* InterXS - L. Croese <[EMAIL PROTECTED]>: > mailcluster-01# qshape > T 5 10 20 40 80 160 320 640 1280 > 1280+ > TOTAL 29 14 15 0 0 0 0 0 00 0 > interxs.nl 29 14 15 0 0 0 0 0 00 0 That's not a lot. > for instance your last reply about qsahpe deferred -> qshape deferred is > still in the queue Could you show the log entries for that one? Is this a real machine of a virtual machine (vserver?) -- Ralf Hildebrandt ([EMAIL PROTECTED]) [EMAIL PROTECTED] Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de Microsoft Vaccine 2000 is configuring your immune system. This may take a few minutes. If your body stops responding for a long time and there is no brain activity please die. Setup will continue after you are reborn.
Re: Postfix Queue Problems (mail is stuck in queue)
It is a real machine, and it is only running postfix, dovecot and mysql for this purpose. mailcluster-01# fgrep BFB03C6BD76 maillog Jul 26 10:09:13 mailcluster-01 postfix/smtpd[46839]: BFB03C6BD76: client=camomile.cloud9.net[168.100.1.3] Jul 26 10:09:13 mailcluster-01 postfix/cleanup[46840]: BFB03C6BD76: message-id=<[EMAIL PROTECTED]> Jul 26 10:09:14 mailcluster-01 postfix/qmgr[46509]: BFB03C6BD76: from=<[EMAIL PROTECTED]>, size=4333, nrcpt=2 (queue active) mailcluster-01# What I do see is that emails which are delived right away have: nrcpt=1 (queue active) I have no idea what nrcpt is though to be honest Leon - Original Message - From: "Ralf Hildebrandt" <[EMAIL PROTECTED]> To: Sent: Saturday, July 26, 2008 10:22 AM Subject: Re: Postfix Queue Problems (mail is stuck in queue) * InterXS - L. Croese <[EMAIL PROTECTED]>: mailcluster-01# qshape T 5 10 20 40 80 160 320 640 1280 1280+ TOTAL 29 14 15 0 0 0 0 0 00 0 interxs.nl 29 14 15 0 0 0 0 0 00 0 That's not a lot. for instance your last reply about qsahpe deferred -> qshape deferred is still in the queue Could you show the log entries for that one? Is this a real machine of a virtual machine (vserver?) -- Ralf Hildebrandt ([EMAIL PROTECTED]) [EMAIL PROTECTED] Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de Microsoft Vaccine 2000 is configuring your immune system. This may take a few minutes. If your body stops responding for a long time and there is no brain activity please die. Setup will continue after you are reborn.
Re: Postfix Queue Problems (mail is stuck in queue)
* InterXS - L. Croese <[EMAIL PROTECTED]>: > It is a real machine, and it is only running postfix, dovecot and mysql > for this purpose. > > mailcluster-01# fgrep BFB03C6BD76 maillog > Jul 26 10:09:13 mailcluster-01 postfix/smtpd[46839]: BFB03C6BD76: > client=camomile.cloud9.net[168.100.1.3] > Jul 26 10:09:13 mailcluster-01 postfix/cleanup[46840]: BFB03C6BD76: > message-id=<[EMAIL PROTECTED]> > Jul 26 10:09:14 mailcluster-01 postfix/qmgr[46509]: BFB03C6BD76: from=<[EMAIL > PROTECTED]>, size=4333, nrcpt=2 (queue active) > > What I do see is that emails which are delived right away have: nrcpt=1 > (queue active) > I have no idea what nrcpt is though to be honest Maybe you're having a problem with nrcpt > 1! nrcpt = number of recipients virtual can only process nrcpt = 1 -- Ralf Hildebrandt ([EMAIL PROTECTED]) [EMAIL PROTECTED] Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de
Re: Postfix Queue Problems (mail is stuck in queue)
Hi Ralf, It went ok for the past hour but now there is a delay again: mailcluster-01# qshape T 5 10 20 40 80 160 320 640 1280 1280+ TOTAL 264 23 108 96 37 0 0 0 00 0 interxs.nl 264 23 108 96 37 0 0 0 00 0 mailcluster-01# What happens if nrcpt > 1? Leon - Original Message - From: "Ralf Hildebrandt" <[EMAIL PROTECTED]> To: Sent: Saturday, July 26, 2008 10:42 AM Subject: Re: Postfix Queue Problems (mail is stuck in queue) * InterXS - L. Croese <[EMAIL PROTECTED]>: It is a real machine, and it is only running postfix, dovecot and mysql for this purpose. mailcluster-01# fgrep BFB03C6BD76 maillog Jul 26 10:09:13 mailcluster-01 postfix/smtpd[46839]: BFB03C6BD76: client=camomile.cloud9.net[168.100.1.3] Jul 26 10:09:13 mailcluster-01 postfix/cleanup[46840]: BFB03C6BD76: message-id=<[EMAIL PROTECTED]> Jul 26 10:09:14 mailcluster-01 postfix/qmgr[46509]: BFB03C6BD76: from=<[EMAIL PROTECTED]>, size=4333, nrcpt=2 (queue active) What I do see is that emails which are delived right away have: nrcpt=1 (queue active) I have no idea what nrcpt is though to be honest Maybe you're having a problem with nrcpt > 1! nrcpt = number of recipients virtual can only process nrcpt = 1 -- Ralf Hildebrandt ([EMAIL PROTECTED]) [EMAIL PROTECTED] Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de
Re: Postfix Queue Problems (mail is stuck in queue)
InterXS - L. Croese: > Hi Ralf, > > It went ok for the past hour but now there is a delay again: > You mention that mail is deferred, but you have never, ever, shown what reasons Postfix logs when it defers mail. $ grep status=deferred /var/log/maillog | more Wietse
ldap aliases
Hello list! I'm trying to move my aliases to ldap. It's somewhat working right now but I have a question. It seems that Postfix searches the database by the username part of the email account. For example if I send email to [EMAIL PROTECTED] (note that bensa.ar doesn't exist on the internet) Postfix checks for "norberto" not "[EMAIL PROTECTED]" main.cf: alias_maps = hash:/etc/mail/aliases ldap:/etc/postfix/ldap-aliases.cf ldap-aliases.cf: bind= no server_host = ldap://127.0.0.1/ search_base = ou=users,dc=bensa,dc=ar scope = sub size_limit = 1 query_filter= (&(objectClass=inetLocalMailRecipient)(mail=%s)) result_attribute= mailLocalAddress $ ldapsearch -x 'uid=nbensa' mailLocalAddress mail dn: uid=nbensa,ou=users,dc=bensa,dc=ar mail: [EMAIL PROTECTED] mail: [EMAIL PROTECTED] mail: [EMAIL PROTECTED] mailLocalAddress: [EMAIL PROTECTED] If I change query_filter to "[EMAIL PROTECTED]" then it works, but then I loss the ability to do virtual domains. I'm sure I'm missing something, but I don't know what. Many thanks in advance, Norberto This message was sent using IMP, the Internet Messaging Program.
Re: ldap aliases
Norberto Bensa: > Hello list! > > I'm trying to move my aliases to ldap. It's somewhat working right now > but I have a question. > > It seems that Postfix searches the database by the username part of > the email account. For example if I send email to [EMAIL PROTECTED] > (note that bensa.ar doesn't exist on the internet) Postfix checks for > "norberto" not "[EMAIL PROTECTED]" > > > main.cf: > > alias_maps = hash:/etc/mail/aliases >ldap:/etc/postfix/ldap-aliases.cf As documented, alias_maps is searched by the address localpart only, and virtual_alias_maps is searched by the full address. See: http://www.postfix.org/ADDRESS_REWRITING_README.html and pages linked from it. Note: you can use virtual aliases WIHOUT having virtual alias domains. Wietse
Re: ldap aliases
Quoting Wietse Venema <[EMAIL PROTECTED]>: Norberto Bensa: It seems that Postfix searches the database by the username part of the email account. ldap:/etc/postfix/ldap-aliases.cf As documented, alias_maps is searched by the address localpart only, and virtual_alias_maps is searched by the full address. See: http://www.postfix.org/ADDRESS_REWRITING_README.html and pages linked from it. Note: you can use virtual aliases WIHOUT having virtual alias domains. Thank you very much Wietse!! I changed: alias_maps = hash:/etc/mail/aliases ldap:/etc/postfix/ldap-aliases.cf to: alias_maps = hash:/etc/mail/aliases virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf and query_filter from: query_filter = (&(objectClass=inetLocalMailRecipient)([EMAIL PROTECTED])) to: query_filter = (&(objectClass=inetLocalMailRecipient)(mail=%s)) everything is working now. Many thanks again! Best regards, Norberto This message was sent using IMP, the Internet Messaging Program.
Processing $myhostname within an LDAP query
Hi all, For some time I have been successfully running a postfix install backed with LDAP, and this query works great: ldapvirtual_query_filter = (&(|(mail=%s)(mailAlternateAddress=%s))(mailHost=$myhostname)) I have recently installed postfix v2.5.1 (as provided by FC9), and went through the config to move the LDAP settings into individual files for the new configuration, so the query now looks like this: query_filter = (&(|(mail=%s)(mailAlternateAddress=%s))(mailHost=$myhostname)) This didn't work. Some digging revealed that the string $myhostname was being passed literally back to the LDAP server, instead of being parsed and turned into the machine name as before. Using postconf, I can confirm that the $myhostname does exist: myhostname = xx.xx.xx Has anyone else found this problem before? Regards, Graham -- smime.p7s Description: S/MIME Cryptographic Signature
5xx or 4xx Lever Error When mySQL Goes Down
Sorry if I missed this information somewhere, but if I have a single MySQL database that store domains, accounts, aliases, etc and it goes down, how does postfix respond to incoming mail and can this behavior be changed? Thanks!
Re: 5xx or 4xx Lever Error When mySQL Goes Down
Brian Puccio <[EMAIL PROTECTED]> wrote: > Sorry if I missed this information somewhere, but if I have a single MySQL > database that store domains, accounts, aliases, etc and it goes down, how > does postfix respond to incoming mail and can this behavior be changed? Can you show postconf -n? Also see the soft_bounce parameter in postconf(5). -- Sahil Tandon <[EMAIL PROTECTED]>
Re: 5xx or 4xx Lever Error When mySQL Goes Down
Brian Puccio: > Sorry if I missed this information somewhere, but if I have a single > MySQL database that store domains, accounts, aliases, etc and it goes > down, how does postfix respond to incoming mail and can this behavior > be changed? Postfix figures out that the database lookup does not complete, it will NOT conclude that users don't exist. Instead it returns an error code and mail will be delivered later. However, if you use PAM underneath libc, then unfortunately the people who implemented PAM were not as careful, and they will claim that users don't exist, and mail will bounce. Wietse
Re: 5xx or 4xx Lever Error When mySQL Goes Down
On Jul 26, 2008, at 8:51 PM, Sahil Tandon wrote: Can you show postconf -n? # postconf -n alias_maps = $alias_database config_directory = /etc/postfix message_size_limit = 4096 mydestination = server1.digitalrhapsody.com, localhost, localhost.localdomain mynetworks = 127.0.0.0/8 69.93.127.176/32 myorigin = /etc/mailname relay_domains = proxy:mysql:/etc/postfix/mysql_relay_domains_maps.cf smtpd_delay_reject = yes smtpd_recipient_restrictions = reject_unauth_pipelining, reject_non_fqdn_recipient, reject_unknown_recipient_domain, permit_mynetworks, check_client_access hash:/var/lib/pop-before-smtp/ hosts, reject_non_fqdn_recipient,reject_unauth_destination, reject_unauth_pipelining, reject_rbl_client zen.spamhaus.org permit smtpd_sender_restrictions = permit_mynetworks, reject_non_fqdn_sender, reject_unknown_sender_domain, permit virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf virtual_gid_maps = static:101 virtual_mailbox_base = /home/mail virtual_mailbox_domains = mysql:/etc/postfix/ mysql_virtual_domains_maps.cf virtual_mailbox_limit = 1048576000 virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf virtual_minimum_uid = 101 virtual_transport = virtual virtual_uid_maps = static:101
Re: 5xx or 4xx Lever Error When mySQL Goes Down
Brian Puccio <[EMAIL PROTECTED]> wrote: > On Jul 26, 2008, at 8:51 PM, Sahil Tandon wrote: >> Can you show postconf -n? > > # postconf -n [...] Wietse already answered your question; see his response. -- Sahil Tandon <[EMAIL PROTECTED]>
Re: keeping a copy of a users mail
Brian P. Carroll wrote: Heya All, We have a user whose mail needs to be copied and cached, i.e. we need every mail he sends/receives to be cached in another mailbox. So even if he deletes something from his Inbox we have a copy of it in a ‘cache’ account. Is this possible from within Postfix? If so, please point me in the direction I need to go. Regards and TIA, Brian Carroll Would a .forward file work?