LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   status=bounced in Postfix/Cyrus on Ubuntu mailserver setup (https://www.linuxquestions.org/questions/linux-server-73/status%3Dbounced-in-postfix-cyrus-on-ubuntu-mailserver-setup-515520/)

thomasJohansen 01-02-2007 02:46 AM

status=bounced in Postfix/Cyrus on Ubuntu mailserver setup
 
Hi.

I'm pretty new to setting up Postfix/Cyrus, and are currently maintaining a new setup of a mailserver (not my conf.)

We are using Posfix 2.2.10-1 and Cyrus 2.2 and are having problems with mail (randomly) beeing bounced.

Can anyone help me with this?

A example from the mail.log:

Dec 29 11:21:03 mail3 postfix/smtpd[14196]: E0B671825F7A: client=localhost.localdomain[127.0.0.1]
Dec 29 11:21:03 mail3 postfix/cleanup[13691]: E0B671825F7A: message-id=<000501c72b32$f78d4be0$0f6409c0@<PROTECTED.COM>>
Dec 29 11:21:03 mail3 postfix/qmgr[23506]: E0B671825F7A: from=<MAIL PROTECTED>, size=3394, nrcpt=1 (queue active)
Dec 29 11:21:03 mail3 postfix/smtp[14285]: 73E2818260CF: to=<MAIL PROTECTED>, relay=127.0.0.1[127.0.0.1], delay=11, status=sent (250 2.6.0 Ok, id=13883-02, from MTA([127.0.0.1]:10025): 250 Ok: queued as E0B671825F7A)
Dec 29 11:21:03 mail3 postfix/lmtp[14207]: input attribute value: E0B671825F7A
Dec 29 11:21:03 mail3 postfix/lmtp[14207]: deliver_request_get: file active/E0B671825F7A
Dec 29 11:21:03 mail3 postfix/lmtp[14207]: send attr queue_id = E0B671825F7A
Dec 29 11:21:03 mail3 postfix/lmtp[14207]: E0B671825F7A: to=<MAIL PROTECTED>, relay=/var/run/cyrus/socket/lmtp[/var/run/cyrus/socket/lmtp], delay=1, status=bounced (host /var/run/cyrus/socket/lmtp[/var/run/cyrus/socket/lmtp] said: 250 2.1.5 ok (in reply to DATA command))
Dec 29 11:21:03 mail3 postfix/qmgr[23506]: E0B671825F7A: removed

Postconf -n

root@mail3:/etc/postfix# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
canonical_maps = proxy:mysql:/etc/postfix/mysql-canonical.cf
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
fallback_transport = lmtp:unix:/var/run/cyrus/socket/lmtp
inet_interfaces = all
inet_protocols = all
lmtp_connect_timeout = 500s
mailbox_size_limit = 0
mailbox_transport = lmtp:unix:/var/run/cyrus/socket/lmtp
message_size_limit = 102400000
mydestination = myhostname, localhost.localdomain, localhost, mysql:/etc/postfix/mysql-mydestination.cf
myhostname = smtp.hostname.no
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
proxy_read_maps = proxy:unix:passwd.byname proxy:mysql:/etc/postfix/mysql-canonical.cf proxy:mysql:/etc/postfix/mysql-virtual-users.cf proxy:mysql:/etc/postfix/mysql-virtual-aliases.cf proxy:mysql:/etc/postfix/mysql-mydestination.cf
recipient_delimiter = +
relay_domains = $mydestination, /etc/postfix/relay-domains
relayhost =
sender_canonical_maps = proxy:mysql:/etc/postfix/mysql-canonical.cf
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_hard_error_limit = 5
smtpd_recipient_restrictions = reject_non_fqdn_sender, reject_unlisted_sender,reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unlisted_recipient, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_helo_access pcre:/etc/postfix/helo, reject_invalid_hostname, reject_non_fqdn_hostname, reject_non_fqdn_recipient, reject_unauth_pipelining, reject_rbl_client zombie.dnsbl.sorbs.net, reject_rbl_client relays.ordb.org, reject_rbl_client opm.blitzed.org, reject_rbl_client list.dsbl.org, reject_rbl_client sbl.spamhaus.org, permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual-aliases.cf

gani 01-04-2007 08:07 AM

Can you for the meantime change the following settings in your /etc/postfix/main.cf to:

mailbox_transport =
mailbox_transport_maps =

fallback_transport =
fallback_transport_maps =

This is how mine is setup by default though I'm using 2.3.4 version currently while yours is still 2.2. Just my idea.

Then reload postfix.

thomasJohansen 01-05-2007 01:12 AM

Gani: Dont I need these settings to transport the mail to Cyrus?

gani 01-06-2007 12:53 AM

I'm not using Cyrus but Courier-IMAP/POP3 and I won't be able to help about this and instead I'm referring you to this guide.

http://www.delouw.ch/linux/Postfix-C...tml/index.html

---------
GANI

billymayday 01-06-2007 01:00 AM

I don't know about Cyrus either, but I use Postfix/Dovecot, and Postfix actually handles the delivery to the mailboxs (in my case Maildir). Dovecot only comes into play once a mail client wants to get mail.

Can you show us the contents of /etc/postfix/transport ?

gani 01-06-2007 01:14 AM

YES! Dovecot is I'm sure the easiest Mailbox handler to setup than the Cyrus and Courier things. But SQL support is still the one preventing me to use this and specially that it is easier to have an SMTP_Auth by linking Cyrus-SASL to MySQL client library during compile and you can use the same user@domain.com and user-password already in your SQL database for telecommuting users' authentication. This is particulary helpfull for those hosting virtual domains.

thomasJohansen 01-07-2007 07:24 AM

billymayday: The only thing in /etc/postfix/transport is the domains we relay to 'own' mailservers (exchange and etc.) ex. domain1.com [smtp:some.Ip.address.com:25]

billymayday 01-07-2007 11:07 AM

Questions. Why is your fallback transport the same as normal transport?

Can you post a snip of the log for a mail that doesn't get bounced?


Rgds


All times are GMT -5. The time now is 10:44 PM.