Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 25th April 2007, 20:51
delacroix delacroix is offline
Junior Member
 
Join Date: Apr 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Virtual Postfix with Courier, MySQL, ClamAV, Saslauthd

Hi,

First of all, thanks for the great tutorial. It worked for a single domain name. I got trouble, if I add more domains to the MySQL table 'domains'. It bounces back my e-mail:
Code:
  test.user@startpoker.hu
    SMTP error from remote mail server after RCPT TO:<test.user@startpoker.hu>:
    host mail.startpoker.hu [88.151.100.52]: 554 <test.user@startpoker.hu>:
    Relay access denied
If I enter startpoker to main.cf (mydestiation):
Code:
The Postfix program
<test.user@startpoker.hu>: unknown user: "test.user"
main.cf
Code:
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
myhostname = ifilm.hu
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = localhost, localhost.localdomain, ifilm.hu, startpoker.hu
relayhost = 
mynetworks = 127.0.0.0/8
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
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
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
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = "The user you are trying to reach is over quota."
virtual_overquota_bounce = yes
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
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
home_mailbox = Maildir/
mailbox_command =
The 2 error in my mail.log
Code:
Apr 25 20:18:31 ifilm postfix/smtpd[13228]: connect from smtp.enternet.hu[62.112.192.21]
Apr 25 20:18:31 ifilm postfix/smtpd[13228]: NOQUEUE: reject: RCPT from smtp.enternet.hu[62.112.192.21]: 554 <test.user@startpoker.hu>: Relay access denied; from=<xyz@enternet.hu> to=<test.user@startpoker.hu> proto=ESMTP helo=<smtp.enternet.hu>
Apr 25 20:18:31 ifilm postfix/smtpd[13228]: disconnect from smtp.enternet.hu[62.112.192.21]
Code:
Apr 25 20:41:49 ifilm postfix/smtpd[13717]: connect from smtp.enternet.hu[62.112.192.21]
Apr 25 20:42:19 ifilm postfix/smtpd[13717]: 836F29800524F: client=smtp.enternet.hu[62.112.192.21]
Apr 25 20:42:19 ifilm postfix/cleanup[13734]: 836F29800524F: message-id=<462FA166.8050000@enternet.hu>
Apr 25 20:42:19 ifilm postfix/qmgr[13624]: 836F29800524F: from=<xyz@enternet.hu>, size=875, nrcpt=1 (queue active)
Apr 25 20:42:19 ifilm postfix/smtpd[13717]: disconnect from smtp.enternet.hu[62.112.192.21]
Apr 25 20:42:22 ifilm dccproc[13737]: socket(UDP): Address family not supported by protocol
Apr 25 20:42:22 ifilm postfix/smtpd[13738]: connect from localhost[127.0.0.1]
Apr 25 20:42:22 ifilm postfix/smtpd[13738]: 9024998005250: client=localhost[127.0.0.1]
Apr 25 20:42:22 ifilm postfix/cleanup[13734]: 9024998005250: message-id=<462FA166.8050000@enternet.hu>
Apr 25 20:42:22 ifilm postfix/qmgr[13624]: 9024998005250: from=<xyz@enternet.hu>, size=1315, nrcpt=1 (queue active)
Apr 25 20:42:22 ifilm postfix/smtpd[13738]: disconnect from localhost[127.0.0.1]
Apr 25 20:42:22 ifilm amavis[9430]: (09430-06) Passed, <xyz@enternet.hu> -> <test.user@startpoker.hu>, Message-ID: <462FA166.8050000@enternet.hu>, Hits: 2.61
Apr 25 20:42:22 ifilm postfix/smtp[13735]: 836F29800524F: to=<test.user@startpoker.hu>, relay=127.0.0.1[127.0.0.1], delay=13, status=sent (250 2.6.0 Ok, id=09430-06, from MTA: 250 Ok: queued as 9024998005250)
Apr 25 20:42:22 ifilm postfix/qmgr[13624]: 836F29800524F: removed
Apr 25 20:42:22 ifilm postfix/local[13740]: 9024998005250: to=<test.user@startpoker.hu>, relay=local, delay=0, status=bounced (unknown user: "test.user")
Apr 25 20:42:22 ifilm postfix/cleanup[13734]: 9D3C19800524F: message-id=<20070425204222.9D3C19800524F@ifilm.hu>
Apr 25 20:42:22 ifilm postfix/qmgr[13624]: 9D3C19800524F: from=<>, size=2905, nrcpt=1 (queue active)
Apr 25 20:42:22 ifilm postfix/qmgr[13624]: 9024998005250: removed
Apr 25 20:42:22 ifilm postfix/smtp[13742]: 9D3C19800524F: to=<xyz@enternet.hu>, relay=avgw.enternet.hu[62.112.192.40], delay=0, status=sent (250 OK id=1HgmTY-0009Vq-DM)
Apr 25 20:42:22 ifilm postfix/qmgr[13624]: 9D3C19800524F: removed
Thank you for your help in advance.

For @ifilm.hu it works great. I found some information that the problem is mail.ifilm.hu = mail.startpoker.hu
The another solution is:
Quote:
Postfix refuses mail for virtual domains with "relay access denied"
Solutions:

* Definisikan sebuah virtual alias domain seperti pada virtual(5) manual page.

* Definisikan sebuah virtual mailbox domain seperti pada virtual(8) manual page.
http://postfix.vlsm.org/website/virtual.5.html
http://postfix.vlsm.org/website/virtual.8.html
But still cant get it to work.

Last edited by delacroix; 26th April 2007 at 07:59.
Reply With Quote
Sponsored Links
  #2  
Old 26th April 2007, 20:13
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

Is startpoker.hu in the domains table?
BTW, you must not list a domain in mydestination in /etc/postfix/main.cf if it is already in the domains table (and vice versa).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Users + Domains With Postfix, Courier + MySQL (+SMTP-AUTH, SpamA, ClamAV) brianwc HOWTO-Related Questions 6 9th May 2007 02:44
Virtual Users + Domains With Postfix, Courier + MySQL (+SMTP-AUTH, SpamA, ClamAV) deflin HOWTO-Related Questions 6 27th April 2007 12:26
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36
Virtual Users And Domains With Postfix, Courier And MySQL - "apt-get" and Courier burritonator HOWTO-Related Questions 3 15th March 2006 20:11


All times are GMT +2. The time now is 14:25.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.