View Single Post
  #4  
Old 23rd January 2008, 07:45
doronkeller doronkeller is offline
Junior Member
 
Join Date: Jan 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the prompt reply guys.

Here is my main.cf, my mysql tables and the error message I receive when an e-mail is sent to me.
Please let me know what you think.
Thanks

My configuration:

[root@web ~]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
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
debug_peer_level = 2
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = web.example.com, localhost, localhost.localdomain
myhostname = web.example.com
mynetworks = 127.0.0.0/8
newaliases_path = /usr/bin/newaliases.postfix
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 = /usr/share/doc/postfix-2.4.5/README_FILES
receive_override_options = no_address_mappings
sample_directory = /usr/share/doc/postfix-2.4.5/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
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 = /home/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = "The user you are trying to reach is over quota."
virtual_overquota_bounce = yes
virtual_uid_maps = static:5000

mysql> use mail
Database changed
mysql> select * from domains;
+-------------+
| domain |
+-------------+
| example.com |
+-------------+
1 row in set (0.00 sec)

mysql> select * from users;
+-------------------+---------------+----------+
| email | password | quota |
+-------------------+---------------+----------+
| doron@example.com | bnTyKaRCPOvbA | 10485760 |
| +-------------------+---------------+----------+
1 row in set (0.02 sec)

Logs of receiving (and rejecting) mail:

Jan 22 21:11:31 web postfix/smtpd[2672]: connect from mail.mySender.com[1.2.3.4]
Jan 22 21:11:32 web postfix/smtpd[2672]: A20F342A0: client=mail.mySender.com[1.2.3.4]
Jan 22 21:11:32 web postfix/cleanup[2681]: A20F342A0: message-id=<F7A41358F8C60649845896DA64953A16022AECF3@mySen der14.mySender.com>
Jan 22 21:11:32 web postfix/qmgr[2670]: A20F342A0: from=<dkeller@mySender.com>, size=11920, nrcpt=1 (queue active)
Jan 22 21:11:32 web postfix/smtpd[2672]: disconnect from mail.mySender.com[1.2.3.4]
Jan 22 21:11:59 web postfix/smtpd[2688]: connect from unknown[127.0.0.1]
Jan 23 05:11:59 web postfix/smtpd[2688]: B50A242A1: client=unknown[127.0.0.1]
Jan 22 21:11:59 web postfix/cleanup[2681]: B50A242A1: message-id=<F7A41358F8C60649845896DA64953A16022AECF3@mySen der14.mySender.com>
Jan 22 21:11:59 web postfix/qmgr[2670]: B50A242A1: from=<dkeller@mySender.com>, size=12342, nrcpt=1 (queue active)
Jan 23 05:11:59 web postfix/smtpd[2688]: disconnect from unknown[127.0.0.1]
Jan 22 21:11:59 web amavis[2175]: (02175-01) Passed CLEAN, [1.2.3.4] [1.2.3.4] <dkeller@mySender.com> -> <doron@example.com>, Message-ID: <F7A41358F8C60649845896DA64953A16022AECF3@mySender 14.mySender.com>, mail_id: w4DZ055C-H6e, Hits: -0.499, size: 11920, queued_as: B50A242A1, 26918 ms
Jan 22 21:12:00 web postfix/smtp[2682]: A20F342A0: to=<doron@example.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=28, delays=0.47/0.11/0.14/27, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as B50A242A1)
Jan 22 21:12:00 web postfix/qmgr[2670]: A20F342A0: removed
Jan 22 21:12:00 web postfix/virtual[2695]: B50A242A1: to=<doron@example.com>, relay=virtual, delay=0.48, delays=0.12/0.12/0/0.23, dsn=5.1.1, status=bounced (unknown user: "doron@example.com")
Jan 22 21:12:00 web postfix/cleanup[2681]: 33F9542A4: message-id=<20080123051200.33F9542A4@web.example.com>
Jan 22 21:12:00 web postfix/bounce[2696]: B50A242A1: sender non-delivery notification: 33F9542A4
Jan 22 21:12:00 web postfix/qmgr[2670]: B50A242A1: removed
Jan 22 21:12:00 web postfix/qmgr[2670]: 33F9542A4: from=<>, size=14144, nrcpt=1 (queue active)
Jan 22 21:12:05 web postfix/smtp[2697]: 33F9542A4: to=<dkeller@mySender.com>, relay=mail.mySender.com[1.2.3.4]:25, delay=5.7, delays=0.06/0.04/5.2/0.34, dsn=2.0.0, status=sent (250 +OK message queued for delivery.)
Jan 22 21:12:05 web postfix/qmgr[2670]: 33F9542A4: removed
Reply With Quote