Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: postfix virtual host

2 views
Skip to first unread message

staticsafe

unread,
May 16, 2013, 1:50:02 PM5/16/13
to
On 5/16/2013 13:35, Pol Hallen wrote:
> Hi folks :-)
>
> I don't understand why virtual host doesn't run :-/ I read many many
> howto but I can't resolve.
>
> Thanks for the help!
>
> virtual_alias_domains = nuvolabianca.org
> virtual_mailbox_domains = nuvolabianca.org
> virtual_mailbox_base = /home/vhosts/nuvolabianca.org
> virtual_mailbox_maps = hash:/etc/postfix/vmailbox
> virtual_minimum_uid = 100
> virtual_uid_maps = static:5000
> virtual_gid_maps = static:5000
> virtual_alias_maps = hash:/etc/postfix/virtual
>
> cat virtual
> fr...@nuvolabianca.org fred
>
> cat vmailbox
> fr...@nuvolabianca.org nuvolabianca.org/fred/
>
> fred does not exist on my system
>
> should be create a dir inside /home/vhosts/nuvolabianca.org
>
> mailq
>
> 25279758236* 3506 Thu May 16 19:22:01 abou...@yahoo.it
> fr...@nuvolabianca.org
>
> Pol
>
>
To help you debug this issue, we need two things:

- output of `postconf -n`
- relevant logs from postfix (/var/log/mail.log)

--
staticsafe
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Please don't top post - http://goo.gl/YrmAb
Don't CC me! I'm subscribed to whatever list I just posted on.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/51951BD...@staticsafe.ca

Pol Hallen

unread,
May 16, 2013, 1:50:02 PM5/16/13
to
Hi folks :-)

I don't understand why virtual host doesn't run :-/ I read many many
howto but I can't resolve.

Thanks for the help!

virtual_alias_domains = nuvolabianca.org
virtual_mailbox_domains = nuvolabianca.org
virtual_mailbox_base = /home/vhosts/nuvolabianca.org
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 100
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_alias_maps = hash:/etc/postfix/virtual

cat virtual
fr...@nuvolabianca.org fred

cat vmailbox
fr...@nuvolabianca.org nuvolabianca.org/fred/

fred does not exist on my system

should be create a dir inside /home/vhosts/nuvolabianca.org

mailq

25279758236* 3506 Thu May 16 19:22:01 abou...@yahoo.it
fr...@nuvolabianca.org

Pol


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/519518E1...@fuckaround.org

Pol Hallen

unread,
May 16, 2013, 2:00:03 PM5/16/13
to
> - output of `postconf -n`
> - relevant logs from postfix (/var/log/mail.log)

Sure! Thanks :-)

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
always_bcc = c...@fuckaround.org
anvil_rate_time_unit = 1800s
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = ipv4
mailbox_size_limit = 300000000
maximal_queue_lifetime = 10d
message_size_limit = 150000000
mydestination = fuckaround, fuckaround.org, localhost.localdomain, localhost
mydomain = fuckaround.org
myhostname = server1.fuckaround.org
mynetworks = 127.0.0.0/8, 192.168.1.0/24, 10.10.10.0/24
myorigin = /etc/mailname
recipient_delimiter = +
relayhost = smtp.fastwebnet.it
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtpd_banner = $myhostname
smtpd_client_connection_rate_limit = 50
smtpd_client_recipient_rate_limit = 400
smtpd_client_restrictions = permit_mynetworks,
reject_unauth_destination, permit_sasl_authenticated,
check_policy_service inet:127.0.0.1:60000
smtpd_recipient_limit = 100
smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt
smtpd_tls_key_file = /etc/ssl/private/smtpd.key
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_domains = nuvolabianca.org
virtual_mailbox_base = /home/vhosts/nuvolabianca.org
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 100 virtual_uid_maps = static:5000
virtual_gid_maps = static:5000 virtual_alias_maps =
hash:/etc/postfix/virtual
virtual_mailbox_domains = nuvolabianca.org

log:

May 16 19:23:39 server1 postfix/pipe[15522]: 49AD3758239:
to=<fr...@nuvolabianca.org>, relay=spamassassin, delay=2.6,
delays=0.37/0/0/2.2, dsn=2.0.0, status=sent (delivered via spamassassin
service)

Pol


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/51951D9F...@fuckaround.org

staticsafe

unread,
May 16, 2013, 2:10:01 PM5/16/13
to
On 5/16/2013 13:55, Pol Hallen wrote:
>> - output of `postconf -n`
>> - relevant logs from postfix (/var/log/mail.log)
>
> Sure! Thanks :-)
>
[::]
snip
> log:
>
> May 16 19:23:39 server1 postfix/pipe[15522]: 49AD3758239:
> to=<fr...@nuvolabianca.org>, relay=spamassassin, delay=2.6,
> delays=0.37/0/0/2.2, dsn=2.0.0, status=sent (delivered via spamassassin
> service)
>
> Pol
>
>

According to the documentation [0]:
"NEVER list a virtual MAILBOX domain name as a virtual ALIAS domain!"

You have:
virtual_alias_domains = nuvolabianca.org
virtual_mailbox_domains = nuvolabianca.org

Get rid of the "virtual_alias_domains".

Your logs also show that the mail was delivered to spamassassin, does
spamassassin log where that went?

[0] - http://www.postfix.org/VIRTUAL_README.html
--
staticsafe
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Please don't top post - http://goo.gl/YrmAb
Don't CC me! I'm subscribed to whatever list I just posted on.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/5195207B...@staticsafe.ca

Pol Hallen

unread,
May 16, 2013, 2:20:01 PM5/16/13
to
> According to the documentation [0]:
> "NEVER list a virtual MAILBOX domain name as a virtual ALIAS domain!"

huh? ... ok

I removed these 2 lines:

> virtual_alias_domains = nuvolabianca.org
> virtual_mailbox_domains = nuvolabianca.org

now the mail bounces to sender, logs:

May 16 20:12:00 server1 postfix/smtpd[18037]: NOQUEUE: reject: RCPT from
nm21.bullet.mail.ird.yahoo.com[212.82.108.136]: 550 5.1.1
<fr...@nuvolabianca.org>: Recipient address rejected: User unknown in
local recipient table; from=<abou...@yahoo.it>
to=<fr...@nuvolabianca.org> proto=SMTP helo=<nm21.bullet.mail.ird.yahoo.com>

Pol


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/519522D1...@fuckaround.org

staticsafe

unread,
May 16, 2013, 2:20:02 PM5/16/13
to
On 5/16/2013 14:17, Pol Hallen wrote:
>> According to the documentation [0]:
>> "NEVER list a virtual MAILBOX domain name as a virtual ALIAS domain!"
>
> huh? ... ok
>
> I removed these 2 lines:
>
>> virtual_alias_domains = nuvolabianca.org
>> virtual_mailbox_domains = nuvolabianca.org
>
> now the mail bounces to sender, logs:
>
> May 16 20:12:00 server1 postfix/smtpd[18037]: NOQUEUE: reject: RCPT from
> nm21.bullet.mail.ird.yahoo.com[212.82.108.136]: 550 5.1.1
> <fr...@nuvolabianca.org>: Recipient address rejected: User unknown in
> local recipient table; from=<abou...@yahoo.it>
> to=<fr...@nuvolabianca.org> proto=SMTP helo=<nm21.bullet.mail.ird.yahoo.com>
>
> Pol
>
>

Don't remove both lines, only remove "virtual_alias_domains", the
"virtual_mailbox_domains" config setting should be there.

--
staticsafe
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Please don't top post - http://goo.gl/YrmAb
Don't CC me! I'm subscribed to whatever list I just posted on.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/519522E9...@staticsafe.ca

Pol Hallen

unread,
May 16, 2013, 2:50:02 PM5/16/13
to
> Don't remove both lines, only remove "virtual_alias_domains", the
> "virtual_mailbox_domains" config setting should be there.

I've same error:

May 16 20:37:07 server1 postfix/smtpd[19799]: NOQUEUE: reject: RCPT from
nm4-vm0.bullet.mail.ird.yahoo.com[77.238.189.211]: 550 5.1.1
<fr...@nuvolabianca.org>: Recipient address rejected: User unknown in
local recipient table; from=<abou...@yahoo.it>
to=<fr...@nuvolabianca.org> proto=SMTP
helo=<nm4-vm0.bullet.mail.ird.yahoo.com>

why "user unknown?"

I follow this howto:

http://dannorth.net/2007/09/09/virtual-mailboxes-with-courier-imap-and-postfix/


--
Pol


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/51952875...@fuckaround.org

me...@pmars.jp

unread,
May 16, 2013, 9:50:02 PM5/16/13
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 16 May 2013 20:41:57 +0200
Pol Hallen <de...@fuckaround.org> wrote:

> > Don't remove both lines, only remove "virtual_alias_domains", the
> > "virtual_mailbox_domains" config setting should be there.
>
> I've same error:
>
> May 16 20:37:07 server1 postfix/smtpd[19799]: NOQUEUE: reject: RCPT
> from nm4-vm0.bullet.mail.ird.yahoo.com[77.238.189.211]: 550 5.1.1
> <fr...@nuvolabianca.org>: Recipient address rejected: User unknown in
> local recipient table; from=<abou...@yahoo.it>
> to=<fr...@nuvolabianca.org> proto=SMTP
> helo=<nm4-vm0.bullet.mail.ird.yahoo.com>
>
> why "user unknown?"
>
> I follow this howto:
>
> http://dannorth.net/2007/09/09/virtual-mailboxes-with-courier-imap-and-postfix/
>
>

Hi,
I'm not so sure I remember properly but when you create a virtual file
or a .db, it has to be turn into a file postfix understand, with the
postmap command.

I think your virtual-alias-map file is a file you create by yourself but
has not been turned into a file postfix understand, with the postmap
command:
"postmap /etc/postfix/virtual" will create a file
named /etc/postfix/virtual.db that can be used by postfix.

I'm telling that because according to man postmap a hash file should
end up in .db not just a file without a format type.

To check your mapping is working you can try this:
"postmap -q fr...@nuvolabianca.org /etc/postfix/virtual"

If you get a "fr...@nuvolabianca.org" as an answer then your mapping is
working and the cause of your problem is different.

Did you read the howto at workaround.org? It is with sql though but
there are explanation for .db as well.

It is very well explained and works very well as too (I'm using it for
a year and a half without a glitch).

http://workaround.org/ispmail/squeeze/postfix-database-configuration

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAEBAgAGBQJRlYeVAAoJELURjTtpxqLuNxIH/3oVJ4FrcnRhWuKCBiySa2PR
6L4BprDCKq6NiXQ1LdQ6WkJAp6JprjkWKW6fS7e4XLjbEGqwOnsRXJhlbvp+6Qmg
wUOFGejyL2XAO/Fln9zHIgypkKgCAq6orfaheUMKPFSTOcMle35fuq1c3HtSCveo
eDHqEp6dCb4i+i/R92ZOSyMz1+hYvUlOEkT38B64MogyxdXkPPXH1pVg/ASPtTmo
CEsFHcmapOpXg+x30cQ+ULn219n1qB431hHSstpMWbG9yrfobYCbk/SBr3HN/NR3
2Xcr4vF5fzmWf1LMwzhizmpxnXWGozqljcGk5AGygzXekTRhVz7R+eyhMxLMFSY=
=1Pf8
-----END PGP SIGNATURE-----
0 new messages