View previous topic :: View next topic |
Author |
Message |
Jaxom Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 31 Jan 2003 Posts: 137
|
Posted: Thu Dec 04, 2003 5:47 am Post subject: virtual mail guide and virtuals not working (solved) |
|
|
I might be setting them up incorrectly, but the docs aren't that clear for a newbie linux vmail user such as myself.
I mentioned this in another thread, but it wasn't along with the topic so I'm putting it here in the hopes someone will be able to assist in this one.
When I send mail locally from root within mutt (or even from a remote server) to my virtual account postfix complains that the mail loops back on it's self and returns it to sender, but only dealing with the virtual mail settings. Local mail works fine.
This is what the log says:
Code: | Dec 3 21:24:57 mail postfix/pickup[2635]: 7AD6A40C0D2: uid=0 from=<root>
Dec 3 21:24:57 mail postfix/cleanup[2745]: 7AD6A40C0D2: message-id=<20031204052457.GA2740@mail.scronline.com>
Dec 3 21:24:57 mail postfix/qmgr[2636]: 7AD6A40C0D2: from=<root@mail.scronline.com>, size=433, nrcpt=1 (queue active)
Dec 3 21:24:57 mail postfix/smtp[2747]: warning: mailer loop: best MX host for sys-resource.com is local
Dec 3 21:24:57 mail postfix/smtp[2747]: 7AD6A40C0D2: to=<pern@sys-resource.com>, relay=none, delay=0, status=bounced (mail for sys-resource.com loops back to myself)
Dec 3 21:24:57 mail postfix/cleanup[2745]: 8569F40C0D1: message-id=<20031204052457.8569F40C0D1@mail.scronline.com>
Dec 3 21:24:57 mail postfix/qmgr[2636]: 8569F40C0D1: from=<>, size=2068, nrcpt=1 (queue active)
Dec 3 21:24:57 mail postfix/local[2749]: 8569F40C0D1: to=<root@mail.scronline.com>, relay=local, delay=0, status=sent (maildir)
|
This is the setting in my users table in mysql:
Code: | 4 pern@sys-resource.com | <password> | my first virtual setup | 1001 | 100 | /home/vmail /home/vmail/sys-resource.com/pern/.maildir/ |
And here is what's in my transport table:
Code: | 3 sys-resource.com virtual: |
I have nothing in my virtual table, and quite frankly I wouldn't know how to use it if there was something that was to be in there. I'm pretty sure I'm just not entering the information correctly in the tables, but I'm confused about exactly what should be where. _________________ Undisputed Heavyweight Champion. If it's undisputed, WHAT'S ALL THE FIGHTING ABOUT?!?! -- George Carlin
Last edited by Jaxom on Sat Dec 06, 2003 1:47 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pilage n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 16 Jul 2003 Posts: 19
|
Posted: Thu Dec 04, 2003 5:27 pm Post subject: |
|
|
do you have your vmail user and group setup?
you will want to set your UID and GID of pern(and all other virt users) to those ID's.
that was the first thing i saw with what you provided although that doesnt seem like it would fix the looping prob....what does your main.cf look like?
also what do your MX records look like, are you beind a firewall? is the server in a DMZ? are you inside the fire wall with a different address than what the outside world sees? if so are you trying to send from an outside account(yahoo, hotmail) to test it from the outside? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ikaro Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/130830920042dd3d4464379.jpg)
Joined: 14 Jul 2003 Posts: 2527 Location: Denmark
|
Posted: Thu Dec 04, 2003 5:44 pm Post subject: |
|
|
The virtual user accounts live in /home/vmail/domain.com/user/.maildir/
and the local accounts live in /home/user/.maildir/
The alias, are used for, like root@domain.com <alias> me@domain.com so that if you send an email to root@ I will get that email at me@domain.com , capiche ?
Use phpmyadmin, belive me,it is easyer to manage all that.
By default, the vitual table is empty, you need to add the values by your self ( useing phpmyadmin, its not more than a couple mouse clicks)
Quote: |
4 pern@sys-resource.com | <password> | my first virtual setup | 1001 | 100 | /home/vmail /home/vmail/sys-resource.com/pern/.maildir/
|
sould be :
Code: |
|homedir|
/home/vmail/sys-ressource/pern/
|maildir|
/home/vmail/sys-resource.com/pern/.maildir/
|
This is a virtual user ! , so you use the id / gid from the vmail user.
If its a local user , use the id / guid from that user .
If its a virtual user, use the id / guid from the vmail user, for all virtual users.
EDIT:
Ive sent you an email and it bounced with this:
Code: |
The Postfix program
<pern@sys-resource.com>: host mail.sys-resource.com[207.212.244.3] said: 554
<pern@sys-resource.com>: Relay access denied (in reply to RCPT TO command)
|
Relay access denied ? iam not trying to relay anything, i use my own pop,smtp
That setup is serioully fcked.
please upload your configs to some place online and post the links where we can find them, No need to post then configs in the tread ( it gets huge ) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Jaxom Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 31 Jan 2003 Posts: 137
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ikaro Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/130830920042dd3d4464379.jpg)
Joined: 14 Jul 2003 Posts: 2527 Location: Denmark
|
Posted: Fri Dec 05, 2003 11:09 pm Post subject: |
|
|
hi.
ive checked out on main.cf and i just post the differences from my file:
Code: |
myorigin: = imaginere.dk
#inet_interfaces are commented
mydestination = localhost.$mydomain
mynetworks = 10.0.0.0/28 127.0.0.0/8
relay_domains = $mydestination
smtpd_recipients_restrictions = permit_sasl_authenticated, permit_mynetworks, check_relay_domains
alias_maps = mysql:/etc/postfix/mysql-alias.cf
relocated_maps = mysql:/etc/postfix/mysql-relocated.cf
fast_flush_domains = $relay_domains
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_sasl_local_domain = $myhostname
virtual_mailbox_domains = imaginere.dk
virtual_uid_maps = mysql:/etc/postfix/mysql-virtual-uid.cf
|
plus i have amavisd-new installed so i have more stuff on that file, but that isnt relevant here.
I will check out the other files too.
Will update this post with the differences as i find them. _________________ linux: #232767 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ikaro Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/130830920042dd3d4464379.jpg)
Joined: 14 Jul 2003 Posts: 2527 Location: Denmark
|
Posted: Fri Dec 05, 2003 11:20 pm Post subject: |
|
|
that was it , everything else looks ok.
So probably you are doing something wrong with the way you are setting up the users.
Maybe someone else would like to comment ? _________________ linux: #232767 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Jaxom Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 31 Jan 2003 Posts: 137
|
Posted: Sat Dec 06, 2003 12:30 am Post subject: |
|
|
It's definitely something with the virtuals. I made some changes to go along with the differences in your config to mine, still get the same thing when mailing from outside the network it says that relay is not allowed, however mail to a local user works fine even from a remote machine
pern@mail.scronline.com works (I'm using that as there is live mx for scronline.com. This machine was intended to replace that when I get the bugs worked out.
As far as the mysql setup all I have is this in the transport section
id | domain | destination
----------------------------------------------
1 | scronline.com | local:
----------------------------------------------
2 | sys-resource.com | virtual:
----------------------------------------------
and this in the users sections
id | email | clear | name | uid | gid | homedir | maildir
------------------------------------------------------------------------------------
1 | pern@scronline.com | <password> | first local user | 1000 | 100 | /home/pern | /home/pern/.maildir/
------------------------------------------------------------------------------------
3 | pern@sys-resource.com | <password> | first virtual user | 1001 | 1001 | /home/vmail/sys-resource/pern/ | /home/vmail/sys-resource.com/pern/.maildir/
-----------------------------------------------------------------------------------
I don't have anything else in any other area relating to a virtual domain. I went as far as to reload the system yesterday and start from scratch and I'm still coming up with the same issue. And it's only directed at the virtuals.
If there's anything else you can think of you might want to look at, by all means, ask and I will provide. This is my first vmail attempt on linux and I'm finding it's a bit over my head at the moment. _________________ Undisputed Heavyweight Champion. If it's undisputed, WHAT'S ALL THE FIGHTING ABOUT?!?! -- George Carlin |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Jaxom Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 31 Jan 2003 Posts: 137
|
Posted: Sat Dec 06, 2003 12:43 am Post subject: |
|
|
And I actually saw someone attempting and this is what the logs say
Code: | Dec 5 16:33:18 mail postfix/smtpd[3027]: ctable_locate: install entry key pern@sys-resource.com
Dec 5 16:33:18 mail postfix/smtpd[3027]: 848215900EA: reject: RCPT from port117.ds1-abc.adsl.cybercity.dk[212.242.125.56]: 554 <pern@sys-resource.com>: Relay access denied; from=<na@imaginere.dk> to=<pern@sys-resource.com> proto=ESMTP helo=<mail.imaginere.dk>
Dec 5 16:33:18 mail postfix/smtpd[3027]: generic_checks: name=reject_unauth_destination status=2
Dec 5 16:33:18 mail postfix/smtpd[3027]: > port117.ds1-abc.adsl.cybercity.dk[212.242.125.56]: 554 <pern@sys-resource.com>: Relay access denied
Dec 5 16:33:19 mail postfix/smtpd[3027]: watchdog_pat: 0x80983a0
Dec 5 16:33:19 mail postfix/smtpd[3027]: < port117.ds1-abc.adsl.cybercity.dk[212.242.125.56]: DATA
Dec 5 16:33:19 mail postfix/smtpd[3027]: > port117.ds1-abc.adsl.cybercity.dk[212.242.125.56]: 554 Error: no valid recipients
Dec 5 16:33:20 mail postfix/smtpd[3027]: watchdog_pat: 0x80983a0
Dec 5 16:33:21 mail postfix/smtpd[3027]: < port117.ds1-abc.adsl.cybercity.dk[212.242.125.56]: RSET
Dec 5 16:33:21 mail postfix/smtpd[3027]: > port117.ds1-abc.adsl.cybercity.dk[212.242.125.56]: 250 Ok
Dec 5 16:33:21 mail postfix/smtpd[3027]: watchdog_pat: 0x80983a0
Dec 5 16:33:21 mail postfix/smtpd[3027]: < port117.ds1-abc.adsl.cybercity.dk[212.242.125.56]: QUIT
Dec 5 16:33:21 mail postfix/smtpd[3027]: > port117.ds1-abc.adsl.cybercity.dk[212.242.125.56]: 221 Bye
Dec 5 16:33:21 mail postfix/smtpd[3027]: disconnect from port117.ds1-abc.adsl.cybercity.dk[212.242.125.56]
Dec 5 16:33:21 mail postfix/smtpd[3027]: master_notify: status 1
Dec 5 16:33:21 mail postfix/smtpd[3027]: connection closed
|
_________________ Undisputed Heavyweight Champion. If it's undisputed, WHAT'S ALL THE FIGHTING ABOUT?!?! -- George Carlin |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Jaxom Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 31 Jan 2003 Posts: 137
|
Posted: Sat Dec 06, 2003 12:51 am Post subject: |
|
|
And here in the logs is where the issue is coming from I believe, but how to fix it, I don't know
Code: | Dec 5 16:43:11 mail postfix/smtpd[3114]: permit_mynetworks: web14703.mail.yahoo.com 216.136.224.120
Dec 5 16:43:11 mail postfix/smtpd[3114]: match_hostname: web14703.mail.yahoo.com ~? 207.212.244.0/24
Dec 5 16:43:11 mail postfix/smtpd[3114]: match_hostaddr: 216.136.224.120 ~? 207.212.244.0/24
Dec 5 16:43:11 mail postfix/smtpd[3114]: match_hostname: web14703.mail.yahoo.com ~? 127.0.0.0/8
Dec 5 16:43:11 mail postfix/smtpd[3114]: match_hostaddr: 216.136.224.120 ~? 127.0.0.0/8
Dec 5 16:43:11 mail postfix/smtpd[3114]: match_list_match: web14703.mail.yahoo.com: no match
Dec 5 16:43:11 mail postfix/smtpd[3114]: match_list_match: 216.136.224.120: no match
Dec 5 16:43:11 mail postfix/smtpd[3114]: generic_checks: name=permit_mynetworks status=0
Dec 5 16:43:11 mail postfix/smtpd[3114]: generic_checks: name=reject_unauth_destination
Dec 5 16:43:11 mail postfix/smtpd[3114]: reject_unauth_destination: pern@sys-resource.com
Dec 5 16:43:11 mail postfix/smtpd[3114]: permit_auth_destination: pern@sys-resource.com
|
_________________ Undisputed Heavyweight Champion. If it's undisputed, WHAT'S ALL THE FIGHTING ABOUT?!?! -- George Carlin |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Jaxom Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 31 Jan 2003 Posts: 137
|
Posted: Sat Dec 06, 2003 1:46 am Post subject: |
|
|
I found the problem. It was because I didn't catch something....
Code: | virtual_mailbox_domains =
sys-resource.com,
$other-virtual-domain.com
|
I didn't catch that I was suppose to actually put the domains coming to that server in there. So, now that's working. Thanks for your help! I hope I can help you if you ever have trouble. Of course I would rather you not have trouble. _________________ Undisputed Heavyweight Champion. If it's undisputed, WHAT'S ALL THE FIGHTING ABOUT?!?! -- George Carlin |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ikaro Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/130830920042dd3d4464379.jpg)
Joined: 14 Jul 2003 Posts: 2527 Location: Denmark
|
Posted: Sat Dec 06, 2003 4:22 am Post subject: |
|
|
good that you got it working
btw, the one you saw trying to send you an email was me ![Wink ;)](images/smiles/icon_wink.gif) _________________ linux: #232767 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bravecobra Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/11480802993eb5bc7c4944b.gif)
Joined: 26 Dec 2002 Posts: 130 Location: Planet Earth (sometimes)
|
Posted: Thu Jun 17, 2004 4:17 pm Post subject: |
|
|
I missed the same vars. Tnx for the solution. It's working here too now ![Smile :)](images/smiles/icon_smile.gif) _________________ Brave Cobra
http://www.bravecobra.com |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|