Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Setting Postfix etc...
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
rgk
Tux's lil' helper
Tux's lil' helper


Joined: 06 Apr 2007
Posts: 140
Location: ny

PostPosted: Thu Jul 05, 2007 10:11 pm    Post subject: Reply with quote

i tried following but i have a few missing parts

virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domain_maps.cf

i don't have mysql_virtual_domain_maps.cf

and what would i put for local_recipient_maps = $alias_maps $virtual_mailbox_maps unix:passwd.byname?

thanks again =)
_________________
MadGizmo.com is awesome.
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2169
Location: Berkshire, UK

PostPosted: Fri Jul 06, 2007 9:54 am    Post subject: Reply with quote

This is just a standard virtual schema from Postfixadmin. You can follow it or not but you can't really mix and match.

You can just comment out that local recipient bit.
Back to top
View user's profile Send private message
rgk
Tux's lil' helper
Tux's lil' helper


Joined: 06 Apr 2007
Posts: 140
Location: ny

PostPosted: Fri Jul 13, 2007 11:06 pm    Post subject: Reply with quote

sorry for not replying sooner but,

magic919, i don't want postfixadmin at all, i would rather handle stuff from phpmyadmin i guess.

my question is:

error: Jul 13 16:07:51 208 postfix/trivial-rewrite[21846]: warning: do not list domain madgizmo.com in BOTH mydestination and virtual_mailbox_domains

what would i set virtual_mailbox_domains too?

i got some more logs too if anyone needs to see them, i seem to be getting errors and i am really have no clue what to do

http://paste2.org/p/4683
_________________
MadGizmo.com is awesome.
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Fri Jul 13, 2007 11:31 pm    Post subject: Reply with quote

There are a few things going on here.

1. virtual_mailbox_domains can not contain things that are in mydestination.

When building a virtual mail server it is best to specify a $myhostname and use that as $myorigin and in $mydestination. Any virtual domains need to be listed only in virtual domain places.

2. The Gentoo Virtual How-to sucks.

By default you have list easy domain you want to be treated as virtual manually in your main.cf.

virtual_mailbox_domains = virtdomain1.com, virtdomain2.com

However you can let Mysql do the work for you with this line and also not have to restart Postfix every time you add a domain.

virtual_mailbox_domains = proxy: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
View user's profile Send private message
rgk
Tux's lil' helper
Tux's lil' helper


Joined: 06 Apr 2007
Posts: 140
Location: ny

PostPosted: Sat Jul 14, 2007 12:29 am    Post subject: Reply with quote

the gentoo virtual how-to has caused some problems :?

thanks i added
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-transport.cf

but what is the difference from "local" domains to virtual domains?

and how would i set up the db the correct way with phpmyadmin for each user and etc... like adding.
the how-to sort of skipped that and left very few examples in the default it gives.
_________________
MadGizmo.com is awesome.
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Sun Jul 15, 2007 5:42 pm    Post subject: Reply with quote

*cough*

And that might be why I recommended using Postfixadmin way back at the beginning of this thread. I hate to say start over, but it's such a better management system and it is really worth it if you don't have much invested in your current system.

However once you get at least one domain, account, etc into your current system it shouldn't be that hard to manage. You pretty much copy the line from your transport table and clone it with the new domain. Same thing for the users and aliases. phpmyadmin should let you do that pretty easily once you set it up.

In regards to local vs virtual the transport table is normally a bit generic. In your case we're setting it to be only virtual so technically it shouldn't matter if we're setting local: or virtual: here. It might be better to use to following config line instead of the original I gave you so you can have local domains, but I won't guarantee it'll work since I haven't used the Gentoo how-to in a number of years.

transport_maps = proxy:mysql:/etc/postfix/mysql-transport.cf

If you do want to switch to Postfixadmin I can send you all my configs.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
bobber205
Guru
Guru


Joined: 23 Aug 2006
Posts: 561
Location: Oregon

PostPosted: Mon Jul 16, 2007 5:50 pm    Post subject: Reply with quote

Since the Virtual How-To Sucks, could you please recommend one that doesn't? :D
Back to top
View user's profile Send private message
rgk
Tux's lil' helper
Tux's lil' helper


Joined: 06 Apr 2007
Posts: 140
Location: ny

PostPosted: Mon Jul 16, 2007 8:59 pm    Post subject: Reply with quote

kashani:

i have a few problems just as the guide before but a bit worse.

i do like postgres but i do not have it installed and would hate to waste room with it when i have mysql, and i don't use apache or webmin.

if anyone could help me set up my db, from what i understand that would be by best bet.
_________________
MadGizmo.com is awesome.
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Mon Jul 16, 2007 10:25 pm    Post subject: Reply with quote

No need to use Postgres, Postfixadmin uses Mysql just fine. This is a how-to I occasionally revisit. It's pretty incomplete, but has all the settings and config files.

http://gentoo-wiki.com/HOWTO_Setup_a_Virtual_Postfix/Courier_Mail_System_with_PostfixAdmin

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
rgk
Tux's lil' helper
Tux's lil' helper


Joined: 06 Apr 2007
Posts: 140
Location: ny

PostPosted: Tue Jul 17, 2007 10:12 pm    Post subject: Reply with quote

ok thanks, i am following that guide now :D

popmail ~ # vi /etc/mail/aliases

what do i do for that part? add aliases how?
_________________
MadGizmo.com is awesome.
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Tue Jul 17, 2007 10:39 pm    Post subject: Reply with quote

Fixed-ish. /etc/mail/aliases is going to be used for mail that is not virtual. Basically anything going to $hostname.$domain.com assuming that what you've set $myorigin and $myhostname to in your /etc/postfix/main.cf.

I'll see if I can think of a way to clarify all that in the quide.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
rgk
Tux's lil' helper
Tux's lil' helper


Joined: 06 Apr 2007
Posts: 140
Location: ny

PostPosted: Sat Jul 21, 2007 3:38 am    Post subject: Reply with quote

kashani

i have followed your guide pretty much all of it, i have 2 questions though:

Could anything from the last guide screw anything up (yes i did re-emerge postfix and everything but i am still just wondering)?

What do I do about the DB? Do I use the same one from last guide? Or?
_________________
MadGizmo.com is awesome.
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Mon Jul 23, 2007 4:56 pm    Post subject: Reply with quote

SO my guide pretty much stops at the Gentoo level and now you need to follow the INSTALL file from PostfixAdmin. Basically you'll need to

1. Import the postfixadmin.sql schema into Mysql. The Gentoo how-to schema will not work.
2. Configure config.inc.php in postfixadmin

and that's pretty much it. I can add some stuff to my wiki if you need more details.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
rgk
Tux's lil' helper
Tux's lil' helper


Joined: 06 Apr 2007
Posts: 140
Location: ny

PostPosted: Wed Jul 25, 2007 7:00 am    Post subject: Reply with quote

i just got postfixadmin running,
but i still don't really know what to do, i created a mailbox and still can't get it to work on kmail or anything, any how-to or such now? :oops:
_________________
MadGizmo.com is awesome.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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