Re: [ilugd] I am not able to send mail through postfix

2013-02-15 Thread Arun Khan
On Fri, Feb 15, 2013 at 12:20 PM, Satish Kr Malanch
satishmala...@gmail.com wrote:
 Hello i am not able to send mail from postfix server :

From the logs it looks the user has no relay authorization.

 smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/
 mysql-virtual_sender.cf

Looks like you have the sender restrictions in a MySQL backend.   Have
you searched the postfix list archives?

-- Arun Khan

___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd


Re: [ilugd] I am not able to send mail through postfix

2013-02-15 Thread Manish Kathuria
On Fri, Feb 15, 2013 at 12:20 PM, Satish Kr Malanch satishmala...@gmail.com
 wrote:

 Hello i am not able to send mail from postfix server :

 var/log/mail output is


 Feb 15 12:15:03 satishmalanch postfix/smtpd[7043]: disconnect from
 localhost[::1]
 Feb 15 12:15:03 satishmalanch dovecot: pop3-login: Disconnected (no auth
 attempts): rip=::1, lip=::1, secured
 Feb 15 12:16:20 satishmalanch postfix/pickup[6972]: B69AA160FEB: uid=0
 from=root
 Feb 15 12:16:20 satishmalanch postfix/cleanup[7200]: B69AA160FEB:
 message-id=20130215064620.B69AA160FEB@satishmalanch
 Feb 15 12:16:20 satishmalanch postfix/qmgr[6973]: B69AA160FEB: from=
 r...@shardamotor.com, size=472, nrcpt=2 (queue active)
 Feb 15 12:16:20 satishmalanch postfix/smtp[7203]: connect to
 127.0.0.1[127.0.0.1]:10024: Connection refused
 Feb 15 12:16:21 satishmalanch postfix/smtp[7203]: B69AA160FEB: to=
 satishmala...@gmail.com, relay=none, delay=0.46, delays=0.39/0.07/0/0,
 dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024:
 Connection refused)
 Feb 15 12:16:21 satishmalanch postfix/smtp[7203]: B69AA160FEB: to=
 sat...@shardamotor.com, relay=none, delay=0.46, delays=0.39/0.07/0/0,
 dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024:
 Connection refused)



 ---



 posfconf -n output is :



  postconf -n
 alias_database = hash:/etc/aliases
 alias_maps = hash:/etc/aliases
 body_checks = regexp:/etc/postfix/body_checks
 broken_sasl_auth_clients = yes
 command_directory = /usr/sbin
 config_directory = /etc/postfix
 content_filter = amavis:[127.0.0.1]:10024
 daemon_directory = /usr/libexec/postfix
 data_directory = /var/lib/postfix
 debug_peer_level = 2
 header_checks = regexp:/etc/postfix/header_checks
 home_mailbox = Maildir/
 html_directory = no
 inet_interfaces = all
 inet_protocols = all
 ipc_idle = 100s
 mailq_path = /usr/bin/mailq.postfix
 manpage_directory = /usr/share/man
 mime_header_checks = regexp:/etc/postfix/mime_header_checks
 mydestination = $myhostname,localhost.$mydomain,localhost,$mydomain
 mydomain = shardamotor.com
 myhostname = satishmalanch
 mynetworks = 127.0.0.0/8 [::1]/128
 myorigin = $mydomain
 nested_header_checks = regexp:/etc/postfix/nested_header_checks
 newaliases_path = /usr/bin/newaliases.postfix
 notify_classes = bounce, delay, resource
 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
 readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
 receive_override_options = no_address_mappings
 relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf
 relay_recipient_maps = mysql:/etc/postfix/
 mysql-virtual_relayrecipientmaps.cf
 sample_directory = /usr/share/doc/postfix-2.6.6/samples
 sendmail_path = /usr/sbin/sendmail.postfix
 setgid_group = postdrop
 smtpd_banner = $myhostname ESMTP
 smtpd_client_restrictions = check_client_access mysql:/etc/postfix/
 mysql-virtual_client.cf
 smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated
 check_recipient_access
 mysql:/etc/postfix/mysql-virtual_recipient.cfreject_unauth_destination
 smtpd_sasl_auth_enable = yes
 smtpd_sasl_authenticated_header = yes
 smtpd_sasl_local_domain = $myhostname
 smtpd_sasl_path = private/auth
 smtpd_sasl_type = dovecot
 smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/
 mysql-virtual_sender.cf
 smtpd_tls_cert_file = /etc/postfix/smtpd.cert
 smtpd_tls_key_file = /etc/postfix/smtpd.key
 smtpd_tls_security_level = may
 smtpd_use_tls = yes
 transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
 unknown_local_recipient_reject_code = 550
 virtual_alias_domains =
 virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf
 ,
 mysql:/etc/postfix/mysql-virtual_email2email.cf
 virtual_gid_maps = static:5000
 virtual_mailbox_base = /var/vmail
 virtual_mailbox_domains = proxy:mysql:/etc/postfix/
 mysql-virtual_domains.cf
 virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
 virtual_transport = dovecot
 virtual_uid_maps = static:5000


 With Best Regards:
 *Satish Kr Malanch*
 


You have specified amavis as the content filter

content_filter = amavis:[127.0.0.1]:10024

but either its not configured or not running. So postfix is not able to
connect to it and is generating the following message in the logs:

Feb 15 12:16:20 satishmalanch postfix/smtp[7203]: connect to
127.0.0.1[127.0.0.1]:10024:
 Connection refused
 Feb 15 12:16:21 satishmalanch postfix/smtp[7203]: B69AA160FEB: to=
 satishmala...@gmail.com, relay=none, delay=0.46,
 delays=0.39/0.07/0/0,dsn=4.4.1, status=deferred (connect to