Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Aug 09, 2012 8:06 am 
Offline
Newbie

Joined: Thu Aug 09, 2012 8:02 am
Posts: 2
I have installed postfix with dovecot for my mail server. Both dovecot and Postfix seem to be operational when I Telnet to them.

But when I try to send a mail from the command line suing mailx I get this error in the mail.log

Code:
proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf lookup error for "sales@XXXXXXX.co.uk"

 virtual_alias_maps map lookup problem for sales@XXXXXXX.co.uk -- deferring delivery
 


I looked into this file and its all correct. That is it below

Code:
Code:
user = xxxxx
password = xxxxx
dbname = mail
query = SELECT destination FROM forwardings WHERE source='%s'
hosts = 127.0.0.1


Not sure where I stand with this? Any help would be great. Can provide any information if needed. I set this up following the guide on linode. Any help would be great.

http://library.linode.com/email/postfix/dovecot-mysql-ubuntu-10.04-lucid

Thanks
William


Top
   
PostPosted: Thu Aug 09, 2012 7:37 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
What does running
Code:
echo "SELECT destination FROM forwardings WHERE source='sales@XXXXXXX.co.uk'" | mysql -u xxxxx --password=xxxxx mail

get you?


Top
   
PostPosted: Fri Aug 10, 2012 4:46 am 
Offline
Newbie

Joined: Thu Aug 09, 2012 8:02 am
Posts: 2
Vance wrote:
What does running
Code:
echo "SELECT destination FROM forwardings WHERE source='sales@XXXXXXX.co.uk'" | mysql -u xxxxx --password=xxxxx mail

get you?


Nothing mate. Doesn't echo anything. Both the forwarding's and destinations tables are empty. I have just created one users email address in the users table like the guide said..

Should the other tables be populated when I try to send a mail to the address to create the virtual mail box.

Thanks


Top
   
PostPosted: Sat Aug 11, 2012 12:05 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
OK, sorry, I wasn't all that familiar with the library article.

It indeed does not specify any entries to be added to the forwardings table (and I'm pretty sure one won't be created automatically).

You should look at both the domains and users tables and make sure they have appropriate entries. Check using the username and password you redacted to ensure that this user has the rights to perform lookups.

Also double-check the value of virtual_alias_maps in your Postfix main.cf:
Code:
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf

There may be a typo in /etc/postfix/mysql-virtual_email2email.cf, or the file itself may be misnamed.

The error message suggests to me that Postfix is searching for the destination e-mail address via mysql-virtual_forwardings.cf but not via mysql-virtual_email2email.cf.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group