Help - Search - Members - Calendar
Full Version: Quick Question About Postfix
Linuxhelp > Support > Technical Support
Termina
Everything works well so far (I can send mail to other users on my computer), and I have SquirrelMail set up.
(For Reference, here are some files off my computer)
http://www.unhandledexceptions.com/conf/dig.output
http://www.unhandledexceptions.com/conf/hosts
http://www.unhandledexceptions.com/conf/main.cf
http://www.unhandledexceptions.com/conf/network


Now, my domain is unhandledexceptions.com. My MX name is mail.unhandledexceptions.com

This is what I have in main.cf at the moment:
myhostname = mail.void.local
mydomain = void.local

My understanding is that I change it to:
myhostname = mail.unhandledexceptions.com
mydomain = unhandledexceptions.com

And then I could send/recieve mail from the world.

Now, would the email address people see (and send) to be username@unhandledexceptions.com?

Or would it be username@mail.unhandledexceptions.com

Also, do I need to edit hosts/network as well? Or can I leave that as is.
Termina
Just bumping. happy.gif
hughesjr
termina ...

you would want to set your MX record so that it has:

mail.unhandledexceptions.com handles mail 1st for unhandledexceptions.com

then the dig output will look like this:

hughesjr.com. 300 IN MX 0 mail.hughesjr.com.

you have it set backwards ....

Also ... you can leave the hostname of the computer what it was so long as the $mydomain is correct

The $mydomain should be unhandledexceptions.com, then they people will send mail to user@unhandledexceptions.com

You also need an A record for mail.unhandledexceptions.com in the Address record section ... it needs to look just like your www A record ... except it is mail ... looks like that is already setup.
Corey
I have a quick question too, instead of starting a new thread, I just thought i'd tag it onto this one

I have my mail setup, and i can send and receive fine, however, when mail is sent by any user, it shows up on the receiving end as being from "username@host" instead of "username@domain"

ex. the host server is called eulogy, so when i send an email, it shows on the other end (to a gmail account) as "duende@eulogy" nothing more. Is postfix causing this, or something else? i'd like for the actual email address to show up.


Update: Nevermind, it wasn't a postfix problem, it was a squirrelmail problem. I tried sending an email from mutt and it came up fine. It was something in the squirrelmail config, so i got that fixed up now.
Termina
Scratch that, sorry. For some reason I cannot send an email from my server to my email address I have with my ISP, but I was just able to send it to my hotmail address

Another Edit: I'm unable to send emails for some reason (not sure if it's a squirrel mail problem, or what), but if anyone has any suggestions, I'd appreciate it. happy.gif

Score! happy.gif
hughesjr
what does it say in your:

/var/log/maillog

about those e-mails?
Termina
Maillog was huge, so I just echo "" > maillog'd it. =D

I sent a mail from a wi.rr.com address, and hotmail.com address. Then I 'cat maillog', and I see this:

[root@void log]# cat maillog

Jun 4 21:33:52 void imapd[6207]: imap service init from 192.168.1.1
Jun 4 21:33:52 void imapd[6207]: Login user=will host=[192.168.1.1]
Jun 4 21:33:52 void imapd[6207]: Logout user=will host=[192.168.1.1]
Jun 4 21:33:52 void imapd[6208]: imap service init from 192.168.1.1
Jun 4 21:33:52 void imapd[6208]: Login user=will host=[192.168.1.1]
Jun 4 21:33:52 void imapd[6208]: Logout user=will host=[192.168.1.1]
Jun 4 21:33:53 void imapd[6209]: imap service init from 192.168.1.1
Jun 4 21:33:53 void imapd[6209]: Login user=will host=[192.168.1.1]
Jun 4 21:33:53 void imapd[6209]: Logout user=will host=[192.168.1.1]
Jun 4 21:33:55 void imapd[6210]: imap service init from 192.168.1.1
Jun 4 21:33:55 void imapd[6210]: Login user=will host=[192.168.1.1]
Jun 4 21:33:55 void imapd[6210]: Logout user=will host=[192.168.1.1]

I would assume that the mail isn't even trying to reach me, so here's my config.php (squirrelmail) and main.cf (postfix), and dig output files:

http://www.unhandledexceptions.com/conf
Termina
After some time, here's a (hopefully) more helpful maillog:

http://www.unhandledexceptions.com/maillog
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.