View previous topic :: View next topic |
Author |
Message |
Kulik Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1621782776436b9cbf8f43f.jpg)
Joined: 01 Aug 2004 Posts: 207 Location: Czech republic
|
Posted: Sun Jun 12, 2005 4:35 pm Post subject: dammed Postfix's smtpd |
|
|
I installed and configured PostFix reading the Virtual Mail hosting guide there on Gentoo web.
Everything works, people can log and fetch mail using IMAP or POP3, but SMTP doesn't work. I can see in logs, that Postfix resolves virtual mailbox from MySQL, but it says user doesn't exists (I send something to user@somedomain.com and it says "user" doesn't exist). It really doesn't (in passwd) but it does in database. Is there something I have missed? Somebody experienced that too?
Haven't something changed in default smtpd configuration? I tried to install it twice and with same result. _________________ Registered Linux user number 369644
Tenuity3D developer - http://www.tenuity3d.com |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kashani Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/9629732313ee51df8c5935.jpg)
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Sun Jun 12, 2005 9:44 pm Post subject: |
|
|
I've got two possible fixes. If neither work out please post the output of postconf -n.
1. Add your domains to mydestination. The orginal Postfix Virtual How-to assumes you're going to install Mailman so they don't add the call to have Postfix query the domain.
2. Add the Postfix query for your domains so that you don't have to edit /etc/postfix/main.cf everytime you add a new domain.
Code: |
mydestination = $myhostname, localhost.$mydomain, $transport_maps
transport_maps = mysql:/etc/postfix/mysql-transport.cf
|
kashani _________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Kulik Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1621782776436b9cbf8f43f.jpg)
Joined: 01 Aug 2004 Posts: 207 Location: Czech republic
|
Posted: Mon Jun 13, 2005 2:04 pm Post subject: |
|
|
Thanks a million man, you probably got it. Just need to tweak virtual_uid_maps and got a full blown virtual mail server.
Quote: | Will personally answer tech support questions in exchange for 1974 Honda CB350 F1 chrome part |
If I had some I would give you ![Cool 8)](images/smiles/icon_cool.gif) _________________ Registered Linux user number 369644
Tenuity3D developer - http://www.tenuity3d.com |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kashani Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/9629732313ee51df8c5935.jpg)
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Mon Jun 13, 2005 3:18 pm Post subject: |
|
|
And so my quest for a shiny new four into one exhust continues.
http://badapple.net/gallery/honda350f1/100_0155
Here's the relative parts of my main.cf which uses Mysql for all lookups. I'm still running Postfix 2.0.19 so it may contain a few extra things that 2.1.5 wouldn't need though i don't think much has changed.
Code: |
#add transport to mydestination
mydestination = $myhostname, localhost.$mydomain, $transport_maps
# SASL settings
smtpd_sasl_auth_enable = yes
smtpd_sasl2_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_local_domain =
# TLS stuff, leaving it off for now.
#smtpd_use_tls = yes
#smtpd_tls_auth_only = yes
#smtpd_tls_key_file = /etc/postfix/newreq.pem
#smtpd_tls_cert_file = /etc/postfix/newcert.pem
#smtpd_tls_CAfile = /etc/postfix/cacert.pem
#smtpd_tls_loglevel = 3
#smtpd_tls_received_header = yes
#smtpd_tls_session_cache_timeout = 3600s
#tls_random_source = dev:/dev/urandom
# Mysql and virtual configs
alias_maps = mysql:/etc/postfix/mysql-aliases.cf
relocated_maps = mysql:/etc/postfix/mysql-relocated.cf
local_transport = local
local_recipient_maps = $alias_maps $virtual_mailbox_maps unix:passwd.byname
virtual_transport = virtual
virtual_minimum_uid = 1000
virtual_gid_maps = mysql:/etc/postfix/mysql-virtual-gid.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf
virtual_uid_maps = mysql:/etc/postfix/mysql-virtual-uid.cf
virtual_mailbox_base = /
virtual_mailbox_limit = 51200000
# filters attachments we don't like
header_checks = regexp:/etc/postfix/header_checks
# don't talk to machines or domains that don't have DNS,
# allow our nerworks, allow sasl auth users, and reject everything else
smtpd_recipient_restrictions =
reject_invalid_hostname,
reject_non_fqdn_recipient,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination,
permit
|
_________________ Will personally fix your server in exchange for motorcycle related shop tools in good shape. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|