
11th November 2008, 11:33
|
|
Senior Member
|
|
Join Date: Nov 2008
Location: Rajkot, India
Posts: 173
Thanks: 5
Thanked 12 Times in 12 Posts
|
|
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
|

12th November 2008, 13:53
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
You just need one login. It doesn't matter which one, the only thing that is important is that it works.
|

13th November 2008, 06:49
|
|
Senior Member
|
|
Join Date: Nov 2008
Location: Rajkot, India
Posts: 173
Thanks: 5
Thanked 12 Times in 12 Posts
|
|
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
|

13th November 2008, 15:40
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
|
|
The Following User Says Thank You to falko For This Useful Post:
|
|

14th November 2008, 07:21
|
|
Senior Member
|
|
Join Date: Nov 2008
Location: Rajkot, India
Posts: 173
Thanks: 5
Thanked 12 Times in 12 Posts
|
|
Quote:
Originally Posted by falko
|
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
|

15th November 2008, 13:03
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
ISPConfig 2 is using system users for the email accounts, so this is no problem.
|

16th November 2008, 05:27
|
|
Senior Member
|
|
Join Date: Nov 2008
Location: Rajkot, India
Posts: 173
Thanks: 5
Thanked 12 Times in 12 Posts
|
|
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.
|

17th November 2008, 12:09
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Quote:
Originally Posted by dipeshmehta
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...
|

22nd November 2008, 05:23
|
|
Senior Member
|
|
Join Date: Nov 2008
Location: Rajkot, India
Posts: 173
Thanks: 5
Thanked 12 Times in 12 Posts
|
|
Quote:
Originally Posted by dipeshmehta
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
|
|
The Following User Says Thank You to dipeshmehta For This Useful Post:
|
falko (23rd November 2008)
|

4th December 2008, 12:24
|
|
Senior Member
|
|
Join Date: Nov 2008
Location: Rajkot, India
Posts: 173
Thanks: 5
Thanked 12 Times in 12 Posts
|
|
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
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 14:54.
|
Recent comments
9 hours 7 min ago
15 hours 48 min ago
19 hours 38 min ago
21 hours 17 min ago
1 day 5 hours ago
1 day 15 hours ago
1 day 16 hours ago
1 day 19 hours ago
1 day 23 hours ago
2 days 19 min ago