Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd April 2009, 10:35
clark61 clark61 is offline
Junior Member
 
Join Date: Mar 2009
Location: Milano
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Transport on Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail

Hi all,
I have made a server as http://howtoforge.com/virtual-users-...l-debian-lenny, and it works very fine, now I have to go a step further ie so that emails are redirected to another mail server reading the howto the necessary function is supplyed by transport (example.com smtp:mail.anotherdomain.tld Delivers all emails for example.com via smtp to the server mail.anotherdomain.com)
and follow this instruction I put in mail data base this:
INSERT INTO `transport` (`domain`, `transport`) VALUES ('mydomain.com', 'smtp:webmail.otherdomain.it');
ok but if for example i send a mail to clark@mydomain.com and the user clark@mydomain.com doesn't exist on this server but exist on server webmail.otherdomain.it in my syslog appears:
Apr 2 09:49:36 adelaide postfix/smtpd[6768]: NOQUEUE: reject: RCPT from mail.somedomain.info[xxx.xx.xxx.xx]: 450 4.1.1 <clark@mydomain.com>: Recipient address rejected: User unknown in virtual alias table; from=<clark@somedomain.info> to=<clark@mydomain.com> proto=ESMTP helo=<mail.somedomain.it>
Apr 2 09:49:37 adelaide postfix/smtpd[6768]: disconnect from mail.somedomain.info[xxx.xx.xxx.xx]
but if I put in the user table clark@mydomain.com without password and even without creating the maildir /home/vmai/mydomain.com/clark the mail is redirected correctly.
Perhaps I misundertood, but I thought that if you redirect all mail for a certain domain to another it should do anyway and then the other server will check whether the user exists.
What do I fail?
Any help is greatly appreciated and I thank you now
My best regards
Reply With Quote
Sponsored Links
  #2  
Old 2nd April 2009, 11:29
bukva bukva is offline
Junior Member
 
Join Date: Apr 2009
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

i've added user and server to transports table and set smtpd_reject_unlisted_recipient to no in /etc/postfix/main.cf
Reply With Quote
  #3  
Old 2nd April 2009, 14:13
clark61 clark61 is offline
Junior Member
 
Join Date: Mar 2009
Location: Milano
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by bukva View Post
i've added user and server to transports table and set smtpd_reject_unlisted_recipient to no in /etc/postfix/main.cf
Hi Bukva,
First many thanks.
Why also the user? is it not the same as adding the address in mail table?
Furthermore how did you add the user to transport table? as if it were a domain and then SMTP:newdomain?
Reply With Quote
  #4  
Old 3rd April 2009, 04:44
bukva bukva is offline
Junior Member
 
Join Date: Apr 2009
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

sorry, i meant user mail like
INSERT INTO `mail`.`transport` (
`domain` ,
`transport`
)
VALUES (
'user@domain.com', 'smtp:secondmailserver.domain.com'
);

and this user does not exist in table 'users'
Reply With Quote
  #5  
Old 3rd April 2009, 09:54
clark61 clark61 is offline
Junior Member
 
Join Date: Mar 2009
Location: Milano
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Bukva,
I tried to include only the domain in transport, and to change the main.cf adding smtpd_reject_unlisted_recipient = no and seems to work well.
I thank you very much.
Reply With Quote
  #6  
Old 9th April 2009, 11:57
rieschl rieschl is offline
Junior Member
 
Join Date: Jul 2008
Location: Vienna
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi

i have a similar question to topic, but not with transport table but users/forwarding.
is it possible to create a user account (in users table) and forward messages to another email-address at the same time?
can i choose between 'keep and forward' and 'forward only'?

is it possible to have a mailbox, but the option to forward mails or keep and forward, without removing the user mailbox.

putting the email-address to users table and forward table at the same time doesn't work, the entry in "forward" is ignored.


thanks for your help!

cheers,
thomas
Reply With Quote
  #7  
Old 10th April 2009, 12:48
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
 
Default

I'm not sure about this one. I guess, instead of using the forward table, you can use maildrop to forward emails.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail Can't telnet pwaterz HOWTO-Related Questions 13 4th April 2009 17:07
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail Ubuntu 8.10 slohning HOWTO-Related Questions 5 5th March 2009 19:08
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 8.04 superman HOWTO-Related Questions 3 23rd October 2008 09:19
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail laserdot HOWTO-Related Questions 3 18th October 2008 05:14
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail Ubuntu 8.04 paulodani HOWTO-Related Questions 7 4th June 2008 00:46


All times are GMT +2. The time now is 07:50.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.