Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 11th November 2008, 11:33
dipeshmehta dipeshmehta is offline
Senior Member
 
Join Date: Nov 2008
Location: Rajkot, India
Posts: 173
Thanks: 5
Thanked 13 Times in 13 Posts
Send a message via Yahoo to dipeshmehta Send a message via Skype™ to dipeshmehta
Default Postfix Relay

Hello,

I have Ubuntu 8.04 Server with Bind9, Postfix, Procmail, Courier-IMAP/POP, and ISPConfig.

I have setup my postfix for SMTP Relay as guided into http://www.howtoforge.com/postfix_re...her_mailserver

I want to know that if I have more than one authenticated account at my ISP, how do I configure my postfix as well as how to select specific account while sending mails.

Thanks in advance.

Dipesh
Reply With Quote
Sponsored Links
  #2  
Old 12th November 2008, 13:53
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

You just need one login. It doesn't matter which one, the only thing that is important is that it works.
__________________
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
  #3  
Old 13th November 2008, 06:49
dipeshmehta dipeshmehta is offline
Senior Member
 
Join Date: Nov 2008
Location: Rajkot, India
Posts: 173
Thanks: 5
Thanked 13 Times in 13 Posts
Send a message via Yahoo to dipeshmehta Send a message via Skype™ to dipeshmehta
Default

Thanks Falco for sparing time out of your busy schedules.

I want to do something more, and I have already posted at ubuntu forums, http://ubuntuforums.org/showthread.php?t=978288

can you please spare some more time? it would be great help for me setting up my server.

Dipesh
Reply With Quote
  #4  
Old 13th November 2008, 15:40
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

1) You can use fetchmail or getmail for this: http://www.howtoforge.com/debian_etch_fetchmail
http://www.howtoforge.com/debian_etch_getmail

2) You can set up relaying: http://www.howtoforge.com/postfix_re...her_mailserver
__________________
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
The Following User Says Thank You to falko For This Useful Post:
dipeshmehta (14th November 2008)
  #5  
Old 14th November 2008, 07:21
dipeshmehta dipeshmehta is offline
Senior Member
 
Join Date: Nov 2008
Location: Rajkot, India
Posts: 173
Thanks: 5
Thanked 13 Times in 13 Posts
Send a message via Yahoo to dipeshmehta Send a message via Skype™ to dipeshmehta
Default

Quote:
Originally Posted by falko View Post
Thanks Falco, for such a wonderful howtos.

I have studied your howtos, there is one little query in my mind. As I understand, since I have been using ISPConfig, mailusers are mainted/managed virtually by ISPConfig, i.e. users are not linux users. Please guide me how to override the issue, do I need to remove ISPConfig? (I actually do not need to host more then one domain on my server) if so, please guide me on how to remove ISPConfig. (I am novice in linux environment)

thanks again,

Dipesh
Reply With Quote
  #6  
Old 15th November 2008, 13:03
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

ISPConfig 2 is using system users for the email accounts, so this is no problem.
__________________
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
  #7  
Old 16th November 2008, 05:27
dipeshmehta dipeshmehta is offline
Senior Member
 
Join Date: Nov 2008
Location: Rajkot, India
Posts: 173
Thanks: 5
Thanked 13 Times in 13 Posts
Send a message via Yahoo to dipeshmehta Send a message via Skype™ to dipeshmehta
Thumbs up

Thanks a lot, Falco.

I have setup my ubuntu server according to approx all my needs, and is running fine. All your howtos made me a great help.

My ubuntu mail server, serves mail in local network, as well as it fetches mail from ISP POP Account and relay through ISP's smtp servers. Now, if I set Return-Path in my mail client (i.e. Outlook Express) as myname@ispdomain.tld - mails sent to users in local network can not "reply" to this mail (technically *can not* means if they reply it would be routed through ISP's mailserver not my local server), and vice versa. Is there, any trick to overcome this issue?

In other words; I need "From:" address and "Replyto:" address to be written as user@localdomain.com for mails send to local users and "From:" address and "Replyto:" address to be written as user@ispdomain.tld for mails send to other recipients.

Moreover, I want to log all mail activity over my ubuntu server i.e. all mails sent and received (whether internal or global), a bcc to be sent to loguser@localdomain.com. For this I added always_bcc in my main.cf file, but it sends hundreds of messages to loguser with subject Mailsize: web2_loguser.
Dipesh

Last edited by dipeshmehta; 16th November 2008 at 11:19.
Reply With Quote
  #8  
Old 17th November 2008, 12:09
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

Quote:
Originally Posted by dipeshmehta View Post
In other words; I need "From:" address and "Replyto:" address to be written as user@localdomain.com for mails send to local users and "From:" address and "Replyto:" address to be written as user@ispdomain.tld for mails send to other recipients.
I'm not sure how to do this. But would it be so bad if the mails went to your ISP's server first? They'd be fetched by fetchmail again in the end...
__________________
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
  #9  
Old 22nd November 2008, 05:23
dipeshmehta dipeshmehta is offline
Senior Member
 
Join Date: Nov 2008
Location: Rajkot, India
Posts: 173
Thanks: 5
Thanked 13 Times in 13 Posts
Send a message via Yahoo to dipeshmehta Send a message via Skype™ to dipeshmehta
Default

Quote:
Originally Posted by dipeshmehta View Post
In other words; I need "From:" address and "Replyto:" address to be written as user@localdomain.com for mails send to local users and "From:" address and "Replyto:" address to be written as user@ispdomain.tld for mails send to other recipients.
Hi Falco,

I found an solution for my need. This can be done configuring postfix for genric mapping. http://www.postfix.org/ADDRESS_REWRI...E.html#generic

I have done and it works well for me.

Thanks for your continued support setting up my server.

Dipesh
Reply With Quote
The Following User Says Thank You to dipeshmehta For This Useful Post:
falko (23rd November 2008)
  #10  
Old 4th December 2008, 12:24
dipeshmehta dipeshmehta is offline
Senior Member
 
Join Date: Nov 2008
Location: Rajkot, India
Posts: 173
Thanks: 5
Thanked 13 Times in 13 Posts
Send a message via Yahoo to dipeshmehta Send a message via Skype™ to dipeshmehta
 
Default

Hello,

I have setup postfix to relay outgoing mails through my ISP's mailserver. Now, I want one of my user do not relay but to send directly the outgoing mails. How do I configure postfix for the same?

Dipesh
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
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 11:14
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39
CentoS doesn't send the emails vaio1 Installation/Configuration 18 5th November 2008 17:51
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36


All times are GMT +2. The time now is 05:53.


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