View Full Version : postfix setup
Demodog
06-09-2008, 06:45 PM
not really a freebsd question but anyway..
I have just installed and configured postfix and managed to get it to send mails to the outer world. but my mail comes as jimmy@mail.domain.com but naturally I want it to say jimmy@domain.com. Do you know where to change this?
I have not setup so I can get mail, but thats what I do in the alias file i guess? Should I just type in which email goes to which user? like jimmy@domain.com: jimmy
or whats the syntax?
thankful for help!
mfaridi
06-09-2008, 06:58 PM
Use this link
http://www.purplehat.org/?page_id=4
Demodog
06-10-2008, 07:26 AM
Yeah I have followed it but can´t seem to get it work fully. I am able to send mail to my hotmail account but I can´t reply. I think I have not set up the aliases right.
If I have a user called jimmy on my computer and want mails transported to this user from jimmy@domain.com how do I go about? I have tried setting in /etc/aliases like this:
jimmy: jimmy@localhost
shouldnt´then incoming mail to jimmy@domain.com be redirected to him?
Demodog
06-10-2008, 09:34 AM
Okay you can ignore the above, I just forgot specify where the aliase file is.
Now I can both send and recieve mail! :-)
My only problem is now that I can only recieve mails when my host name is in the adress like this: jimmy@mailserver.domain.com
If I mail to jimmy@domain.com the mail never gets through.
And the same goes when I mail out, the mailadress goes like jimmy@mailserver.domain.com
do anyone know if its something I should set in postfix or something that has to do with my mx pointer?
xCipherx
06-10-2008, 10:41 AM
Do you have this:
myhostname = mail.domain.tld
myorigin = domain.tld
mydestination = $myhostname, $mydomain, localhost.$mydomain
in you main.cf?
Demodog
06-10-2008, 11:38 AM
Thanx!! that solved half the problem, when I changed the mydestination value I am able to recieve mail sent to jimmy@domain.com
Okay so now the only problem left is that when I mail out it says jimmy@mailserver.domain.com
myorigin is set to domain.com
any ideas?
xCipherx
06-10-2008, 12:17 PM
Do you have mydomain = domain.com in this file aswell?
Demodog
06-10-2008, 01:24 PM
yes I have...
Demodog
06-10-2008, 01:27 PM
I send the mail through my isp´s smtp server relayhost = smtp.jacket.se
can that have something to do with it?
Demodog
06-10-2008, 07:37 PM
Finally I solved the problem using this little line:
masquerade_domains = domain.com
thanx for all helps!!
Demodog
06-11-2008, 12:12 PM
I want squirrelmail for my postfix and therefore thinking of installing dovecot as imap. I did build postfix from portstree in freebsd but didnt add dovecot support. does it matter or can I rebuild it with support?
you can (have to) recompile postfix with dovecot support.
/v
Demodog
06-11-2008, 08:43 PM
well I tried installing dovecot anyway and Yes it worked :-)
vBulletin® v3.7.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.