Port-i386 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

SOLUTION: Please help - configuring e-mai



Dear forum members,

I followed your kind advice as to how to configure my e-mail, and indeed, it 
worked. Therefore, here follows a summary of how to configure e-mail, at least 
in my special case. Maybe it is helpful for others:

I. Situation:

The machine is connected to an internal network (in this case, of a dormitory) 
which, by DHCP, assigns the IP address 10.0.0.132 to the machine. This happens 
every time the machine connects. How you find the ip-address, assuming your 
network card is ex0: ipconfig ex0. You are not being assigned anything else 
than this IP address. (No network name or similar).

You have the username "thatsme" (with the password "mypass", this password is 
not important here) on your local machine - let us call it 
fancy.machinename.net as hostname, and machinename.net as domain. Your mail 
provider is somenet.com, with mail.somenet.com and pop.somenet.com used to send 
and receive mails; your username there is "myadr%somenet.com@localhost", and 
password is "mymailpass".


II. Solution:

in /etc/rc.conf write:

dhclient=yes
hostname=fancy.machinename.net

in /etc/hosts write:
10.0.0.132 fancy.machinename.net

in /etc/postfix/main.cf write:
myhostname = fancy.machinename.net
mydomain = machinename.net
mynetworks_style = host
relayhost = mail.somenet.com
smtp_generic = hash:/etc/postfix/generic

in /etc/postfix/generic write:
thatsme%fancy.machinename.net@localhost myadr%somenet.com@localhost

then issue the following commands:
# postmap /etc/postfix/generic && postfix check && /etc/rc.d/postfix reload'
$ date | mail -s TEST thatsme%fancy.machinename.net@localhost

Now when you say "mail" at the prompt, you should have got mail.

Lastly, assuming you install fetchmail, in .fetchmailrc you can do this, if you 
want your e-mails to be checked and REMOVED from the server:
poll mail.somenet.com
protocol POP3
username myadr%somenet.com@localhost there with password mymailpass is thatsme 
here
flush
mda "/usr/sbin/sendmail -oem %T"

since .fetchmailrc must not have more rights that -rwx--x---, you have to set 
the rights with chmod as user thatsme:

chmod u=rwx,g=x,o= .fetchmailrc

now, you should be able to send and receive e-mails.

to receive an e-mail, you first say:
$ fetchmail
then you say:
$ mail
or mutt (which you have to configure) or whatever. :)

Hope this helps others. Thank you all for your kind help.

Kind regards,

Nino
-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/?mc=sv_ext_mf@gmx


Home | Main Index | Thread Index | Old Index