Thanks for your reply.
I have setup Iredmail on ubuntu 14.04. I'm able to send/receive emails from other domain such as (Yahoo, Hotmail or others), at start the mail was getting delayed than i disabled greylist after that emails started working but still no incoming from gmail but outgoing is working fine.
I have purchase a vpn from linode and bought a domain from godaddy which is "allco.info" no i have pointed allco.info to linode ip and emails started working except gmail.
My Var Log File is mentioned below;
Mar 16 03:45:37 allco postfix/smtpd[9930]: 2F59618487: client=mail-yk0-x22c.google.com[2607:f8b0:4002:c07::22c]
Mar 16 03:45:37 allco postfix/smtpd[9930]: 2F59618487: reject: END-OF-MESSAGE from mail-yk0-x22c.google.com[2607:f8b0:4002:c07::22c]: 450 4.7.1 <END-OF-MESSAGE>: End-of-data rejected: Access denied; from=<it.hzco@gmail.com> to=<majid@mail.allco.info> proto=ESMTP helo=<mail-yk0-x22c.google.com>
Mar 16 03:45:37 allco postfix/cleanup[9937]: 2F59618487: message-id=<CAF2uP157-n1CMo=EN4vhhcVHVLnTM8GgoRdhdTGcUnA-8o5N8g@mail.gmail.com>
Mar 16 03:45:37 allco postfix/smtpd[9930]: disconnect from mail-yk0-x22c.google.com[2607:f8b0:4002:c07::22c]
Mar 16 03:45:44 allco postfix/smtpd[9930]: connect from mail-yk0-x235.google.com[2607:f8b0:4002:c07::235]
Mar 16 03:45:45 allco postfix/smtpd[9930]: 1279818487: client=mail-yk0-x235.google.com[2607:f8b0:4002:c07::235]
Mar 16 03:45:45 allco postfix/smtpd[9930]: 1279818487: reject: END-OF-MESSAGE from mail-yk0-x235.google.com[2607:f8b0:4002:c07::235]: 450 4.7.1 <END-OF-MESSAGE>: End-of-data rejected: Access denied; from=<it.hzco@gmail.com> to=<majid@mail.allco.info> proto=ESMTP helo=<mail-yk0-x235.google.com>
Mar 16 03:45:45 allco postfix/cleanup[9937]: 1279818487: message-id=<CAF2uP15NcYKiL8RuEECg9GEhN6GeY703_HMDSOUc8Z8ZJQoR=w@mail.gmail.com>
Mar 16 03:45:45 allco postfix/smtpd[9930]: disconnect from mail-yk0-x235.google.com[2607:f8b0:4002:c07::235]
Mar 16 03:49:05 allco postfix/anvil[9932]: statistics: max connection rate 1/60s for (smtp:2607:f8b0:4002:c07::22c) at Mar 16 03:45:37
Mar 16 03:49:05 allco postfix/anvil[9932]: statistics: max connection count 1 for (smtp:2607:f8b0:4002:c07::22c) at Mar 16 03:45:37
Mar 16 03:49:05 allco postfix/anvil[9932]: statistics: max cache size 2 at Mar 16 03:45:44
Mar 16 03:52:33 allco postfix/smtpd[9959]: connect from mail-yk0-x235.google.com[2607:f8b0:4002:c07::235]
Mar 16 03:52:33 allco postfix/trivial-rewrite[9964]: warning: do not list domain mail.allco.info in BOTH virtual_mailbox_domains and relay_domains
Mar 16 03:52:33 allco postfix/smtpd[9959]: 2B8191841D: client=mail-yk0-x235.google.com[2607:f8b0:4002:c07::235]
Mar 16 03:52:33 allco postfix/smtpd[9959]: 2B8191841D: reject: END-OF-MESSAGE from mail-yk0-x235.google.com[2607:f8b0:4002:c07::235]: 450 4.7.1 <END-OF-MESSAGE>: End-of-data rejected: Access denied; from=<it.hzco@gmail.com> to=<majid@mail.allco.info> proto=ESMTP helo=<mail-yk0-x235.google.com>
Mar 16 03:52:33 allco postfix/cleanup[9966]: 2B8191841D: message-id=<CAF2uP16W+74itKGv9tDEt0bG_j20PQDfeejjOWfLZuprEsqyfA@mail.gmail.com>
Mar 16 03:52:33 allco postfix/smtpd[9959]: disconnect from mail-yk0-x235.google.com[2607:f8b0:4002:c07::235]
Mar 16 03:54:02 allco postfix/smtpd[9959]: connect from mail-ie0-x22d.google.com[2607:f8b0:4001:c03::22d]
Mar 16 03:54:02 allco postfix/smtpd[9959]: AEC3E1841D: client=mail-ie0-x22d.google.com[2607:f8b0:4001:c03::22d]
Mar 16 03:54:02 allco postfix/smtpd[9959]: AEC3E1841D: reject: END-OF-MESSAGE from mail-ie0-x22d.google.com[2607:f8b0:4001:c03::22d]: 450 4.7.1 <END-OF-MESSAGE>: End-of-data rejected: Access denied; from=<gem.majid@gmail.com> to=<majid@mail.allco.info> proto=ESMTP helo=<mail-ie0-x22d.google.com>
Mar 16 03:54:02 allco postfix/cleanup[9966]: AEC3E1841D: message-id=<CACSfDhywn9jCuuTCeMeRLDqnB3F5R889JD2532yAVR=v5oDXzA@mail.gmail.com>
Mar 16 03:54:02 allco postfix/smtpd[9959]: disconnect from mail-ie0-x22d.google.com[2607:f8b0:4001:c03::22d]
Mar 16 03:57:23 allco postfix/anvil[9961]: statistics: max connection rate 1/60s for (smtp:2607:f8b0:4002:c07::235) at Mar 16 03:52:33
Mar 16 03:57:23 allco postfix/anvil[9961]: statistics: max connection count 1 for (smtp:2607:f8b0:4002:c07::235) at Mar 16 03:52:33
Mar 16 03:57:23 allco postfix/anvil[9961]: statistics: max cache size 1 at Mar 16 03:52:33
below is mentioned my iredapd.log
2015-03-15 21:54:14 INFO [2607:f8b0:4001:c03::22b] gem.majid@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-15 22:02:07 INFO [2607:f8b0:4001:c03::234] gem.majid@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-15 22:48:47 INFO [2607:f8b0:4002:c01::22c] it.hzco@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-15 22:48:58 INFO [2607:f8b0:4002:c07::22c] it.hzco@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-15 23:17:49 INFO [2607:f8b0:4002:c01::236] it.hzco@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-15 23:22:59 INFO [2607:f8b0:4002:c01::22c] it.hzco@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-15 23:24:17 INFO [2607:f8b0:4002:c01::230] it.hzco@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-15 23:28:15 INFO [2607:f8b0:4002:c07::234] it.hzco@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-15 23:35:14 INFO [2607:f8b0:4002:c07::22e] it.hzco@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-15 23:43:02 INFO [2607:f8b0:4002:c07::230] it.hzco@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-16 00:23:44 INFO [2607:f8b0:4001:c03::235] gem.majid@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-16 00:29:19 INFO [2607:f8b0:4002:c01::235] it.hzco@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-16 00:39:45 INFO [2607:f8b0:4001:c05::230] gem.majid@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-16 01:08:24 INFO [2607:f8b0:4002:c01::230] it.hzco@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-16 01:17:38 INFO [2607:f8b0:4002:c07::229] it.hzco@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-16 01:20:49 INFO [2607:f8b0:4002:c07::230] it.hzco@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-16 01:25:12 INFO [2607:f8b0:4002:c01::234] it.hzco@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-16 01:35:00 INFO [2607:f8b0:4002:c07::234] it.hzco@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-16 01:43:22 INFO [2607:f8b0:4002:c07::233] it.hzco@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-16 01:47:41 INFO [2607:f8b0:4002:c01::232] it.hzco@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-16 02:32:38 INFO [2607:f8b0:4002:c01::230] it.hzco@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-16 02:48:50 INFO [2607:f8b0:4001:c05::229] gem.majid@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-16 03:06:37 INFO [2607:f8b0:4002:c01::22c] it.hzco@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-16 03:09:57 INFO [2607:f8b0:4002:c07::235] it.hzco@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-16 03:36:48 INFO [2607:f8b0:4002:c07::235] it.hzco@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-16 03:38:50 INFO [2607:f8b0:4002:c07::232] it.hzco@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-16 03:45:37 INFO [2607:f8b0:4002:c07::22c] it.hzco@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-16 03:45:45 INFO [2607:f8b0:4002:c07::235] it.hzco@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-16 03:52:33 INFO [2607:f8b0:4002:c07::235] it.hzco@gmail.com -> majid@mail.allco.info, DUNNO
2015-03-16 03:54:02 INFO [2607:f8b0:4001:c03::22d] gem.majid@gmail.com -> majid@mail.allco.info, DUNNO
my postfix main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
# TLS parameters
smtpd_tls_cert_file = /etc/ssl/certs/iRedMail.crt
smtpd_tls_key_file = /etc/ssl/private/iRedMail.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = allco.info
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
myorigin = allco.info
mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname
relayhost =
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
#inet_protocols = all
inet_protocols = all
virtual_alias_domains =
allow_percent_hack = no
swap_bangpath = no
mydomain = allco.info
mynetworks_style = host
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = no
smtpd_tls_protocols = !SSLv2 !SSLv3
smtp_tls_protocols = !SSLv2 !SSLv3
lmtp_tls_protocols = !SSLv2 !SSLv3
smtpd_tls_mandatory_protocols = !SSLv2 !SSLv3
smtp_tls_mandatory_protocols = !SSLv2 !SSLv3
lmtp_tls_mandatory_protocols = !SSLv2 !SSLv3
smtp_tls_security_level = may
smtp_tls_CAfile = $smtpd_tls_CAfile
smtp_tls_loglevel = 0
smtp_tls_note_starttls_offer = yes
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated
delay_warning_time = 0h
maximal_queue_lifetime = 4h
bounce_queue_lifetime = 4h
proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps $transport_maps $virtual_alias_domains $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps $smtpd_sender_restrictions
smtp_data_init_timeout = 240s
smtp_data_xfer_timeout = 600s
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, check_helo_access pcre:/etc/postfix/helo_access.pcre
queue_run_delay = 300s
minimal_backoff_time = 300s
maximal_backoff_time = 4000s
enable_original_recipient = no
disable_vrfy_command = yes
home_mailbox = Maildir/
allow_min_user = no
message_size_limit = 15728640
virtual_minimum_uid = 2000
virtual_uid_maps = static:2000
virtual_gid_maps = static:2000
virtual_mailbox_base = /var/vmail
transport_maps = proxy:mysql:/etc/postfix/mysql/transport_maps_user.cf, proxy:mysql:/etc/postfix/mysql/transport_maps_domain.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql/virtual_alias_maps.cf, proxy:mysql:/etc/postfix/mysql/domain_alias_maps.cf, proxy:mysql:/etc/postfix/mysql/catchall_maps.cf, proxy:mysql:/etc/postfix/mysql/domain_alias_catchall_maps.cf
sender_bcc_maps = proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf, proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_domain.cf
recipient_bcc_maps = proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_user.cf, proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_domain.cf
relay_domains = $mydestination, proxy:mysql:/etc/postfix/mysql/relay_domains.cf
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql/sender_login_maps.cf
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
smtpd_tls_auth_only = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:7777, check_policy_service inet:127.0.0.1:10031,
smtpd_tls_security_level = may
smtpd_tls_loglevel = 0
smtpd_tls_CAfile = /etc/ssl/certs/iRedMail.crt
tls_random_source = dev:/dev/urandom
mailbox_command = /usr/lib/dovecot/deliver
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/dovecot-auth
content_filter = smtp-amavis:[127.0.0.1]:10024
smtp-amavis_destination_recipient_limit = 1
always_bcc = outgoing@mail.allco.info
Kindly suggest me something which works for me.
Regards,
Majid Hussain