I'm follow this http://www.howtoforge.com/virtual_users_and_domains_with_postfix_debian_etch_p2 but i can't receive any email only can send out the email ~ Sep 30 04:26:23 monday postfix/smtp[9204]: 18CEB3546CC: to=<[email protected]>, relay=none, delay=0.07, delays=0.06/0/0/0, dsn=5.4.6, status=bounced (mail for xxxxx.com loops back to myself) how to fix the problem ? loops back to myself ?
But i use the mysql to store the virtual user . how can i do ? quote some main.cf myhostname = xxxx.xxxx.com alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = $myhostname, localhost, localhost.localdomain relayhost = mynetworks = 127.0.0.0/8 mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all virtual_alias_domains = virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf virtual_mailbox_base = /home/vmail virtual_uid_maps = static:5000 virtual_gid_maps = static:5000 smtpd_sasl_auth_enable = yes broken_sasl_auth_clients = yes smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf virtual_create_maildirsize = yes virtual_mailbox_extended = yes virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
Do you use xxxxx.com for virtual users? If not, change the mydestination line to Code: mydestination = $myhostname, localhost, localhost.localdomain, xxxxx.com
Same here This is my log Code: Sep 1 14:47:53 filtro postfix/smtpd[4203]: connect from mail-ww0-f45.google.com[74.125.82.45] Sep 1 14:47:53 filtro postfix/policy-spf[4210]: : SPF pass (Mechanism 'ip4:74.125.0.0/16' matched): Envelope-from: [email protected] Sep 1 14:47:53 filtro postfix/policy-spf[4210]: handler sender_policy_framework: is decisive. Sep 1 14:47:53 filtro postfix/policy-spf[4210]: : Policy action=PREPEND Received-SPF: pass (gmail.com ... _spf.google.com: 74.125.82.45 is authorized to use '[email protected]' in 'mfrom' identity (mechanism 'ip4:74.125.0.0/16' matched)) receiver=filter.gaga.com; identity=mailfrom; envelope-from="[email protected]"; helo=mail-ww0-f45.google.com; client-ip=74.125.82.45 Sep 1 14:47:54 filtro postfix/smtpd[4203]: 00A98181738: client=mail-ww0-f45.google.com[74.125.82.45] Sep 1 14:47:54 filtro postfix/cleanup[4211]: 00A98181738: hold: header Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45])??by filter.gaga.com (Postfix) with ESMTPS id 00A98181738??for <[email protected]>; Thu, 1 Sep 2011 14:47:53 + from mail-ww0-f45.google.com[74.125.82.45]; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-ww0-f45.google.com> Sep 1 14:47:54 filtro postfix/cleanup[4211]: 00A98181738: message-id=<CALXpz5iQU89h3WuGMBd6UaY3ALUia8S-J9zNHxDjzwzRs0HX4g@mail.gmail.com> Sep 1 14:47:57 filtro MailScanner[1232]: New Batch: Scanning 1 messages, 2574 bytes Sep 1 14:47:57 filtro MailScanner[1232]: Virus and Content Scanning: Starting Sep 1 14:48:01 filtro CRON[4219]: (root) CMD (baruwa-admin queuestats 2>/dev/null) Sep 1 14:48:03 filtro postfix/pickup[3633]: 2FBE518174C: uid=0 from=<root> Sep 1 14:48:03 filtro postfix/cleanup[4211]: 2FBE518174C: message-id=<[email protected]> Sep 1 14:48:03 filtro postfix/qmgr[3634]: 2FBE518174C: from=<[email protected]>, size=849, nrcpt=1 (queue active) Sep 1 14:48:03 filtro postfix/error[4234]: 2FBE518174C: to=<[email protected]>, orig_to=<root>, relay=none, delay=0.08, delays=0.02/0.03/0/0.03, dsn=5.0.0, status=bounced (No local mail delivery) Sep 1 14:48:03 filtro postfix/cleanup[4211]: 41A8D18174D: message-id=<[email protected]> Sep 1 14:48:03 filtro postfix/qmgr[3634]: 41A8D18174D: from=<>, size=2741, nrcpt=1 (queue active) Sep 1 14:48:03 filtro postfix/bounce[4235]: 2FBE518174C: sender non-delivery notification: 41A8D18174D Sep 1 14:48:03 filtro postfix/qmgr[3634]: 2FBE518174C: removed Sep 1 14:48:03 filtro postfix/error[4234]: 41A8D18174D: to=<[email protected]>, relay=none, delay=0.02, delays=0.01/0/0/0.01, dsn=5.0.0, status=bounced (No local mail delivery) Sep 1 14:48:03 filtro postfix/qmgr[3634]: 41A8D18174D: removed Sep 1 14:48:08 filtro MailScanner[1232]: Expired 4 records from the SpamAssassin cache Sep 1 14:48:08 filtro MailScanner[1232]: Baruwa whitelist refresh time reached Sep 1 14:48:08 filtro MailScanner[1232]: Starting Baruwa whitelists Sep 1 14:48:08 filtro MailScanner[1232]: Read 1 whitelist items Sep 1 14:48:08 filtro MailScanner[1232]: Ip blocks whitelisted: Sep 1 14:48:08 filtro MailScanner[1232]: Baruwa blacklist refresh time reached Sep 1 14:48:08 filtro MailScanner[1232]: Starting Baruwa blacklists Sep 1 14:48:08 filtro MailScanner[1232]: Read 0 blacklist items Sep 1 14:48:08 filtro MailScanner[1232]: Ip blocks blacklisted: Sep 1 14:48:13 filtro MailScanner[1232]: Requeue: 00A98181738.A898F to 9CE4418174B Sep 1 14:48:13 filtro postfix/qmgr[3634]: 9CE4418174B: from=<[email protected]>, size=1861, nrcpt=1 (queue active) Sep 1 14:48:13 filtro MailScanner[1232]: Uninfected: Delivered 1 messages Sep 1 14:48:13 filtro MailScanner[1232]: Deleted 1 messages from processing-database Sep 1 14:48:13 filtro MailScanner[1232]: Logging message 00A98181738.A898F to Baruwa SQL Sep 1 14:48:13 filtro postfix/smtp[4241]: 9CE4418174B: to=<[email protected]>, relay=none, delay=21, delays=21/0.04/0/0, dsn=5.4.6, status=bounced (mail for destination.com loops back to myself) Sep 1 14:48:13 filtro postfix/cleanup[4211]: EC281181739: message-id=<[email protected]> Sep 1 14:48:13 filtro postfix/qmgr[3634]: EC281181739: from=<>, size=3912, nrcpt=1 (queue active) Sep 1 14:48:13 filtro postfix/bounce[4236]: 9CE4418174B: sender non-delivery notification: EC281181739 Sep 1 14:48:13 filtro postfix/qmgr[3634]: 9CE4418174B: removed Sep 1 14:48:15 filtro postfix/smtp[4242]: EC281181739: to=<[email protected]>, relay=gmail-smtp-in.l.google.com[209.85.227.27]:25, delay=1.8, delays=0/0.02/0.16/1.6, dsn=2.0.0, status=sent (250 2.0.0 OK 1314881290 13si28370wbw.57) Sep 1 14:48:15 filtro postfix/qmgr[3634]: EC281181739: removed and my main.cf Code: # 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 = filter.gaga.com 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 = /usr/share/doc/postfix # TLS parameters smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.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. myhostname = filter.gaga.com mydomain = gaga.com myorigin = filter.gaga.com mydestination = localhost.filter.gaga.com, localhost.localdomain, localhost, filter.gaga.com #mynetworks = 127.0.0.0/8, 192.168.0.0/24 mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases relayhost = mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all html_directory = /usr/share/doc/postfix/html message_size_limit = 10485760 local_transport = error:No local mail delivery local_recipient_maps = relay_domains = mysql:/etc/postfix/mysql-relay_domains.cf relay_recipient_maps = mysql:/etc/postfix/mysql-relay_recipients.cf transport_maps = mysql:/etc/postfix/mysql-transports.cf #virtual_alias_domains = area-innova.com, filtro.area-innova.com #virtual_alias_maps = hash:/etc/postfix/virtual disable_vrfy_command = yes strict_rfc821_envelopes = no smtpd_delay_reject = yes smtpd_recipient_limit = 100 smtpd_helo_required = yes smtpd_client_restrictions = permit_sasl_authenticated, permit_mynetworks, permit smtpd_helo_restrictions = permit_sasl_authenticated, permit_mynetworks, permit smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_sender, reject_unknown_sender_domain, permit smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unknown_recipient_domain, reject_unauth_destination, look_ahead, whitelist_policy, grey_policy, rbl_policy, spf_policy, permit smtpd_data_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_pipelining smtpd_restriction_classes = spf_policy, rbl_policy, grey_policy, whitelist_policy, verify_recipient, look_ahead spf_policy = check_policy_service unix:private/policy rbl_policy = reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net grey_policy = check_policy_service unix:private/greyfix whitelist_policy = check_client_access mysql:/etc/postfix/mysql-global_whitelist.cf, check_sender_access mysql:/etc/postfix/mysql-global_whitelist.cf header_checks = regexp:/etc/postfix/header_checks verify_recipient = reject_unknown_recipient_domain, reject_unverified_recipient look_ahead = check_recipient_access hash:/etc/postfix/access unverified_recipient_reject_code = 550 address_verify_map = btree:/var/lib/postfix/verify What could be wrong?
With mydestination = destination.com I get Recipient address rejected: No local mail delivery Code: Sep 5 10:45:32 filtro postfix/smtpd[23496]: NOQUEUE: reject: RCPT from mail-wy0-f177.google.com[74.125.82.177]: 550 5.1.1 <[email protected]>: Recipient address rejected: No local mail delivery; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-wy0-f177.google.com>
My problem was based on following the tutorial The Perfect SpamSnake and I found the solution. I restored my main.cf and rad again this paragraph in the spamsnake tutorial: