Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
postfix doc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
digitalnick
Apprentice
Apprentice


Joined: 30 Jun 2002
Posts: 243
Location: Lawrence KS USA

PostPosted: Mon Feb 17, 2003 5:12 pm    Post subject: postfix doc Reply with quote

im following the postfix doc am i supposed to actuall put
myhostname = $host.domain.name
in my main.cf or am i supposed to change it to my actual hostname because im getting errors when i get to newalaises
Code:
newaliases: warning: valid_hostname: misplaced delimiter: .domain.name
newaliases: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: .domain.name


thanks
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Mon Feb 17, 2003 7:03 pm    Post subject: postfix Reply with quote

It should be your actual host name, preferably what you specified in /etc/hosts

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
digitalnick
Apprentice
Apprentice


Joined: 30 Jun 2002
Posts: 243
Location: Lawrence KS USA

PostPosted: Mon Feb 17, 2003 7:56 pm    Post subject: Reply with quote

thanks works a little better now ;)

so i emerged mutt created cur new and tmp in ~/.maildir

root can recieve emails when the root account is alaised to an outside mail address
but it seems that if i alais root to another local user its not recieving mail
basically no local users are getting anything delivered any ideas?
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Mon Feb 17, 2003 8:56 pm    Post subject: postfic delievery Reply with quote

Check the log files to see what's going. If I had to guess, I'd bet it's permission problems. Postfix won't create a maildir if the user doesn't own the local dir. Try the following if Postfix complains about dirs in the logs.

chown -R localuser:users /home/localuser

where localuser is a the user you want to fix.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
digitalnick
Apprentice
Apprentice


Joined: 30 Jun 2002
Posts: 243
Location: Lawrence KS USA

PostPosted: Tue Feb 18, 2003 12:42 am    Post subject: Reply with quote

i changed the permissions but still dosnt look like any local users are recieving mail
Code:

Feb 17 18:30:05 [postfix/qmgr] EA7603AFD: from=<www@mail.johnajordan.com>, size=416, nrcpt=1 (queue active)
Feb 17 18:30:05 [postfix/cleanup] 07B7A3A2D: message-id=<20030218003004.GA14011@mail.johnajordan.com>
Feb 17 18:30:05 [postfix/qmgr] 07B7A3A2D: from=<www@mail.johnajordan.com>, size=556, nrcpt=1 (queue active)
Feb 17 18:30:05 [postfix/local] EA7603AFD: to=<www@mail.johnajordan.com>, relay=local, delay=1, status=sent (forwarded as 07B7A3A2D)

is some output from my log but nothing turns up in the users maildir
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Tue Feb 18, 2003 1:07 am    Post subject: more postfix Reply with quote

digitalnick wrote:

Code:

Feb 17 18:30:05 [postfix/qmgr] EA7603AFD: from=<www@mail.johnajordan.com>, size=416, nrcpt=1 (queue active)
Feb 17 18:30:05 [postfix/cleanup] 07B7A3A2D: message-id=<20030218003004.GA14011@mail.johnajordan.com>
Feb 17 18:30:05 [postfix/qmgr] 07B7A3A2D: from=<www@mail.johnajordan.com>, size=556, nrcpt=1 (queue active)
Feb 17 18:30:05 [postfix/local] EA7603AFD: to=<www@mail.johnajordan.com>, relay=local, delay=1, status=sent (forwarded as 07B7A3A2D)



Hmmm that doesn't look right. My logs show this for a delivery
Code:

Feb 17 15:00:35 src@bandwidth postfix/local[1565]: 61E0D3A248D: to=<kashani@badapple.net>, rela
y=local, delay=0, status=sent (maildir)


It looks like the server is accepting the email and then forwarding it somewhere else. Check your /etc/mail/aliases file and your mydestination setting in your main.cf. For what I see in your logs the following should work.

mydestination = $myhostname, localhost.$mydomain, $mydomain

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
digitalnick
Apprentice
Apprentice


Joined: 30 Jun 2002
Posts: 243
Location: Lawrence KS USA

PostPosted: Tue Feb 18, 2003 1:50 am    Post subject: Reply with quote

heh /me feels like a moron
after reviewing my aliases file again i noticed that ther is a www user that points to webmaster that points to root heh and i had root point to www
cicular heh thanks for the help on wiht the doc :)
Back to top
View user's profile Send private message
digitalnick
Apprentice
Apprentice


Joined: 30 Jun 2002
Posts: 243
Location: Lawrence KS USA

PostPosted: Tue Feb 18, 2003 4:25 am    Post subject: Reply with quote

another odity ... when i send mail from a local account to an external accoutn the reply address is set to localuser@smtp.secureserver.com whats that smtp.secureserver.com about and how would i go about getting it back to normal
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Tue Feb 18, 2003 7:22 pm    Post subject: possible mua problem Reply with quote

I'd check your mail client for funny settings.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
digitalnick
Apprentice
Apprentice


Joined: 30 Jun 2002
Posts: 243
Location: Lawrence KS USA

PostPosted: Wed Feb 19, 2003 10:33 pm    Post subject: Reply with quote

im not seeing anything about secureserver anywhere ive no clue why its doing this ... it only seem to do it when i send mail to an esternal person. if i send to another loacal user it shows from my host.domain.tld

any other ideas?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum